From: horst DOT kraemer AT t-online DOT de (Horst Kraemer) Newsgroups: comp.os.msdos.djgpp Subject: Re: please help Date: Fri, 03 Mar 2000 07:29:49 GMT Organization: T-Online Lines: 20 Message-ID: <38bf69cf.389797323@news.btx.dtag.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news00.btx.dtag.de 952068583 13415 0306239354-0001 000303 07:29:43 X-Complaints-To: abuse AT t-online DOT de X-Sender: 0306239354-0001 AT t-dialin DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 03 Mar 2000 01:05:10 GMT, "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)) Huh ? In Pascal it would be if letter = ' ' and in C or C++ it would be if (letter == ' ')