|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: hey, stupid question but...
All that would do is make it global, and the error would be different for that. I'm with Mike and the gang, I say it's an error in a previous line, or it doesn't like using int in the function name.
|
|
#2
|
||||
|
||||
|
Re: hey, stupid question but...
Quote:
but ive made the mistake of using function-level variable outside the function. Its probably not the problem, but its worth a try. |
|
#3
|
|||||
|
|||||
|
Re: hey, stupid question but...
it probably isn't prototyping since it is a syntax error. My guess is that it sometimes tells you there's an error a line or two after the actual error. It may be a problem with the int intmax(int x, int y) line. try changing a couple things to see if that's the problem.
|
|
#4
|
||||
|
||||
|
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;
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stupid Variable question.... | BillyJ | Programming | 3 | 20-02-2006 19:49 |
| Stupid question but... | Adam Y. | Math and Science | 6 | 16-02-2004 19:29 |
| Really stupid question | psychoCHIPMUNKK | Kit & Additional Hardware | 3 | 15-02-2004 00:26 |
| stupid question x10 | Tom Bottiglieri | CD Forum Support | 1 | 04-02-2004 22:40 |
| ill probably feel stupid but i do anyway so... | Anthony Kesich | Programming | 8 | 05-11-2003 12:53 |