Actually, I've now switched to Visual C++ 2005. I'd rather not deal with the hassle of switching to GUIs or making major changes when everything else works now except for this small thing. All I need to do is stop user input after the loop has ended from affecting following calls for input. Isn't there something fairly simple that can be done (maybe relating to buffers or preventing input or ignoring the keyboard briefly)?
Thanks for the suggestions so far, Robin. --- In [email protected], Thomas Hruska <[EMAIL PROTECTED]> wrote: > > Brett W. McCoy wrote: > > On 9/11/07, Thomas Hruska <[EMAIL PROTECTED]> wrote: > > > >> OP: If you have getch(), then you probably also have kbhit(). However, > >> as we have already pointed out, both are part of the ancient Turbo C/C++ > >> compiler suite. Upgrade your compiler. Also, seriously consider using > >> a GUI, which is better suited for such things OR, if you REALLY need > >> console stuff like this, use ncurses. > > > > If I recall, the OP is using a hacked in version of CONIO for Dev- C++ > > ... I think you can even use a TurboVision clone with Dev-C++ > > > > -- Brett > > ------------------------------------------------------------ > > "In the rhythm of music a secret is hidden; > > If I were to divulge it, it would overturn the world." > > -- Jelaleddin Rumi > > Oh. > > -- > Thomas Hruska > CubicleSoft President > Ph: 517-803-4197 > > *NEW* MyTaskFocus 1.1 > Get on task. Stay on task. > > http://www.CubicleSoft.com/MyTaskFocus/ >
