Originally posted by Chobo_C++
im trying to accept input from the user and meanwhile i want to loop something, for example when i use getch() to get input, i dont want the program to stop and wait until the user types sometyhing, i want it to display stuff on the screen insteneasouly during the proces of getch(). is this possible? if not is there any other way to accomploish this task?
My guess is this is OS and compiler specific.. I would use kbhit function for this..
something like
(Warning:- Compiler/OS specific.. wont run everywere)
Code:
while(TRUE)
{
keep doing something...
if(kbhit())
ch=getch();
}