Code use: #include <cstdio> use: #include <iostream> use: using std::cin; use: using std::cout; use this prototype before main(): void cont(); use this call when you want to pause: cont(); include the following function: void cont() { if (cin.rdbuf()->sungetc() != -1 && cin.get() != '\n') cin.ignore(80,'\n'); cout << "Press enter to continue..."; cin.get(); }