www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/02/21:46:01

Date: Thu, 2 Mar 2000 20:56:08 -0500
Message-Id: <200003030156.UAA25139@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <adEv4.12135$W5.133553@typhoon.nyroc.rr.com> (fubu36@stny.rr.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
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> letter = getch();
> if (letter == the space key ascii code 32)

char letter;
letter = getch();
if (letter == 32)
  ...

Characters and integers are pretty much interchangeable in C.

- Raw text -


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