
March 11th, 2003, 11:14 PM
|
 |
Contributing User
|
|
Join Date: Jan 2003
Location: USA
|
|
|
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.
Quote: Originally posted by andy3109
a = 3.14(r * r);
c = 3.14(r * 2);
|
Both statements follow the syntax of a function call --
fn_name(argument list)
-- 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?
Quote:
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?
|