I wanted to pause the execution of my program by requiring the input of a keystoke (any key). The idea was to put a message on a label something like "Change a switch to --- and then key any key to continue." I expected the program to wait until any key had been pushed using a statement like "while((ch = _kbhit()) != 0);". However, the program just goes right past the statement without stopping with ch = 0. What am I doing wrong?
NOVICE3
NOVICE3 0 Newbie Poster
Momerath 1,327 Nearly a Senior Poster Featured Poster
NOVICE3 0 Newbie Poster
Momerath 1,327 Nearly a Senior Poster Featured Poster
NOVICE3 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.