|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hey, stupid question but...
I was wondering if anyone could give me any help. I keep coming up with an error when I try to use this function definition. I haven't declared the function in anywhere else other then this, and it is ahead of any calls to the function so I let it be its own prototype.
Code:
int intMax(int x, int y)
{ //here is where I get the syntax error
int max = x;
if(y > max)
{
max = y;
}
return max;
}
|
| 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 |