C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 11th, 2003, 10:56 PM
andy3109's Avatar
andy3109 andy3109 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 421 andy3109 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 46 m 21 sec
Reputation Power: 11
Send a message via AIM to andy3109
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.


-andy
__________________
hmmm...

Last edited by andy3109 : March 11th, 2003 at 11:00 PM.

Reply With Quote
  #2  
Old March 11th, 2003, 11:06 PM
andy3109's Avatar
andy3109 andy3109 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 421 andy3109 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 46 m 21 sec
Reputation Power: 11
Send a message via AIM to andy3109
ahhhh..nm i misnamed a function. damnit Im stupid tonight.

Reply With Quote
  #3  
Old March 11th, 2003, 11:14 PM
dwise1_aol's Avatar
dwise1_aol dwise1_aol is offline
Contributing User
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 6,138 dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level)dwise1_aol User rank is General 15th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 3 Days 22 h 27 m 31 sec
Reputation Power: 1974
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.

Quote:

(r*r)3.14


Same basic error, but this syntax doesn't mean anything in C that I know of.

Quote:

3.14 * (r*r)


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?

Reply With Quote
  #4  
Old March 12th, 2003, 06:08 AM
andy3109's Avatar
andy3109 andy3109 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 421 andy3109 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 46 m 21 sec
Reputation Power: 11
Send a message via AIM to andy3109
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.

-andy

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > term does not evaluate to a function?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap