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! -- Thanks, Andrew McCall Internet/Linux System Administrator I.C.T. Division Oldham MBC Civic Centre West Street Oldham OL1 1UU Tel : 0161 911 3990 Fax : 0161 911 3998 Email : it.andrew.mccall@oldham.gov.uk ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.oldham.gov.uk **********************************************************************