From: "Toni Riikonen" Newsgroups: comp.os.msdos.djgpp Subject: Vs: please help Date: Fri, 3 Mar 2000 03:40:56 +0200 Organization: Tampere Telephone Plc Lines: 21 Message-ID: <89n570$6ml$1@news.koti.tpo.fi> References: NNTP-Posting-Host: line83.dyn.tutka.net X-Trace: news.koti.tpo.fi 952047648 6869 212.116.32.83 (3 Mar 2000 01:40:48 GMT) X-Complaints-To: abuse AT tpo DOT fi NNTP-Posting-Date: 3 Mar 2000 01:40:48 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com John kirjoitti viestissä:adEv4.12135$W5 DOT 133553 AT typhoon DOT nyroc DOT rr DOT com... > 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 > > Simply like this: if(letter == 32) { do the what ever you like; } I think...