Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   hey, stupid question but... (http://www.chiefdelphi.com/forums/showthread.php?t=52358)

TheOtherGuy 20-01-2007 23:56

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.

Phantomechanics 24-01-2007 17:49

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;
}



All times are GMT -5. The time now is 23:56.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi