March 11th, 2003, 10:56 PM
term does not evaluate to a function?
the compilar doesn't like this:
a = 3.14(r * r);
c = 3.14(r * 2);
It gives the error, "term does not evaluate to a function";
When I change it to (r*r)3.14 or 3.14 * (r*r) but then it comes up with other weird errors.
EDIT:: BY THE WAY...a and c are both floats.
Last edited by andy3109; March 11th, 2003 at 11:00 PM.
March 11th, 2003, 11:06 PM
ahhhh..nm i misnamed a function. damnit Im stupid tonight.
March 11th, 2003, 11:14 PM
Re: term does not evaluate to a function?
Basically, in order to multiply two terms, you simply must use an asterix. I assume that you've been burning the midnight oil.
Both statements follow the syntax of a function call --
-- so the error of "term does not evaluate to a function" makes sense. Besides, "3.14" is not a valid name for a function, which I think is the reason for that particular error.
Same basic error, but this syntax doesn't mean anything in C that I know of.
This one is valid, yet you still got an error message. Could you tell me what error this one gives you?
Could that weird error message be a warning that you are assigned a double r-value to a float l-value and could lose precision?
March 12th, 2003, 06:08 AM
nah..as said above I misnamed a function..it was defined as numeric() and then when I wrote the function it was called numric()..But thanks alot for your reply. Regards.