User Profile

Collapse

Profile Sidebar

Collapse
StrugglingStudent
StrugglingStudent
Last Activity: Apr 14 '10, 07:28 PM
Joined: Mar 5 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • StrugglingStudent
    replied to '=' function as left operand Errors?
    in C
    Thank You so much! That makes so much more sense!
    See more | Go to post

    Leave a comment:


  • StrugglingStudent
    started a topic '=' function as left operand Errors?
    in C

    '=' function as left operand Errors?

    I'm having problems finishing my program, it keeps giving me the error '=':function as left operand. And im not sure what that means. It is supposed to be a function to calculate basic car rental prices. This piece of the program is where it is telling me its wrong. Im not sure how to fix it though. Any help would be excellent.

    Code:
    switch(car_type) 
    	{ 
    		case 1: 
    			cost=29.90;
    			extra=0.29;
    			total=total(cost,days_rented,km_traveled,extra);
    ...
    See more | Go to post
    Last edited by Banfa; Mar 5 '10, 09:44 AM. Reason: Added code tags
No activity results to display
Show More
Working...