console.pause c++ code example
Example 1: c++ pause
#include <Windows.h>
int main() {
//do stuff
system("Pause");
}
Example 2: pause the console c++
// This is only one of many ways but you can use
getchar();
#include <Windows.h>
int main() {
//do stuff
system("Pause");
}
// This is only one of many ways but you can use
getchar();