delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/03/06:03:46

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: <adEv4.12135$W5 DOT 133553 AT typhoon DOT nyroc DOT rr DOT com>
Mime-Version: 1.0
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" <fubu36 AT stny DOT rr DOT com> 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 == ' ')

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019