Say I want to leave a program running and it stops when I press F9 for instance, I'm looking for something like (and note this is just a generalization).
well im no pro in C++ programming, in fact im still learning, but i think you should use some sort of loop in order to make your program run until certain conditions met that may cause the program to stop or quit. Maybe a while loop?
@roxmate - you are correct, this is how most programs work. You need a while loop i.e.:
1 2 3 4
do
{
// main program code called:
} while (running);
the program continues to run until the Boolean variable named running is true, when the program needs to end this Boolean variable is set to false and the program ends.