C++ Input Problem
Hi, im wondering how I can solve a problem ive been having with getting inpu in C++.
I want to be able to get input from the keyboard without pausing the program like getch() and cin do.
If anyone can help it would be greatly appreciated. Thx.
///////////
char c;
if(kbhit())
c = getch();
/////////////
Check kbhit() before calling getch(). If kbhit() is true, getch will return you a character imediately,
char c;
if(kbhit())
c = getch();
/////////////
Check kbhit() before calling getch(). If kbhit() is true, getch will return you a character imediately,
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement