Is it possible to exit a C++ loop based on keyboard input without actually having to input something each iteration?
For instance
while(checkkeyboardinput != 'q')
{
do work
}
I feel that this is very easy, but google isn't helping me, and I can't remember how to do this. Thanks for the help.
EDIT: I'm using VS2008