There is such a piece of code.
void Control() { _getch(); switch(button) { case 8: pause++; } } void Start() { Control(); while(pause == false) { Iteration(); Render(); } }
You must put the program "on pause" when you press the spacebar. The fact is that if you put Control () in a loop with an iterator and a render, then for each frame you have to press the spacebar. What to do next? = /