On Tuesday 05 November 2002 4:17 pm, Frank Heckenbach wrote:
Andrew McCall wrote:
The first question I wanted to ask is about this list - can I ask coding questions here, or is it purley for actual gpc development?
Yes, the it's for both.
Frank
Cool!
Well, I have just been getting used to programming in Pascal again, and I thought I would write the age-old number guessing game. It all works, well it *should* but I seem to be having problems with some logic in an if statement:
if (iGuess > 0) or (iGuess < 101) then { do my code }
I thought this bit of code should detect if iGuess is inbetween 0 and 100, but it doesn't seem to work! Can anyone tell me why?
Also is there a random number generator in gpc? I have hardcoded the value for this program, I want to play with it being random too :)
Thanks!