Date: Mon, 7 Dec 1998 19:04:45 -0500 (EST) From: Nathaniel Johnson To: djgpp AT delorie DOT com Subject: Re: C++ Question (slightly off topic) In-Reply-To: <366B9CB8.2351B88E@nccoast.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com if you just want to get a key when it is hit without using just use this code int c = 0; while (c != 27) // until you hit { if (kbhit()) { c = getch(); printf("The key you hit is %d", c); // ex: if you hit A then c = 65 } . . . }