Message-ID: <38BF2F5F.F9034EBA@caresystems.com.au> Date: Fri, 03 Mar 2000 13:19:59 +1000 From: leon X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: please help References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com John wrote: > > how would i do this in c++ > letter = getch(); > if (letter == the space key ascii code 32) > > how would i check for the ascii value 32? > I know in pascal it would be if (letter = chr(32)) > Thanks char someLetter; //here assign someLetter a character eg. someLetter='x'; if(someLetter==32)//perform conditional or like this: if(someLetter=='x') { } is that what you are after?!