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.
| Originally posted by andy3109 |
a = 3.14(r * r);
c = 3.14(r * 2);
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?
EDIT:: BY THE WAY...a and c are both floats.
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?