View Single Post
  #13   Spotlight this post!  
Unread 24-01-2007, 17:49
Phantomechanics's Avatar
Phantomechanics Phantomechanics is offline
phantom mechanics
AKA: joey
FRC #2028
Team Role: Student
 
Join Date: Jan 2007
Rookie Year: 2007
Location: hampton VA
Posts: 7
Phantomechanics is an unknown quantity at this point
Send a message via AIM to Phantomechanics
Re: hey, stupid question but...

Hey you who had the problem, are you still with us?
Why do you even have 'max'? Couldnt you just use this?
Code:
int intMax(int x, int y)
{                                //here is where I get the syntax error
    if(y > x)
        x = y;
    
    return x;
}