motocross95
Thread Starter
- Joined
- Oct 30, 2001
- Messages
- 110
I am using Turbo C++ and I am making a simple program that displays circles and random X and Y coordinates and random colors. One problem, I'm not sure how to perform a loop in Turbo C++ until a key is pressed. I tried something like
do
{
//Code goes here
} while (getch() != "");
As you can guess it does not work, I get an error. I also just made it....while (getch()); But that just makes it pause after every loop until you press a key. Any help would be greatly appreciated thank you.
do
{
//Code goes here
} while (getch() != "");
As you can guess it does not work, I get an error. I also just made it....while (getch()); But that just makes it pause after every loop until you press a key. Any help would be greatly appreciated thank you.