I'm making a program and I need to know how to, on enter, return my mainscr(); function. Like, after they finish reading the instructions, I want them to be able to hit Enter and have it return my mainscr(); function. I've tried:
But that returns mainscr(); before they hit Enter. Also, I made a betting program and every time it calls a new function, it clears the screen, but in the one I'm doing now, every time it calls a new function it doesn't clear the screen which is irretating me because I have to add: system ("cls"); to the beginning of every function. If it helps at all, I'm using Dev-C++ 4.0 to compile these programs.Code:cin.get(); mainscr();