How to make c++ console application not exit until user presses any key?
- by user198729
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
The exe generated by the above will exit automatically,how to change the behavior?