Message-ID: <366D767C.F0A9FB29@nccoast.net> Date: Tue, 08 Dec 1998 13:57:00 -0500 From: Phillip Rhodes Organization: Wilmington Star News X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: C++ Question (slightly off topic) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Nathaniel Johnson wrote: > 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 > } > } Thanks, but I'm trying to do it in C++, using the C++ Iostream library. I want to avoid the old C style io routines. What you showed above though, is exactly the effect I want, I just need a way to do it in C++, using iostreams. TTYL, Phil