delorie.com/archives/browse.cgi | search |
Message-ID: | <38BF2F5F.F9034EBA@caresystems.com.au> |
Date: | Fri, 03 Mar 2000 13:19:59 +1000 |
From: | leon <Leon AT caresystems DOT com DOT au> |
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: | <adEv4.12135$W5 DOT 133553 AT typhoon DOT nyroc DOT rr DOT com> |
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?!
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |