This doesn\'t work:
string temp; cout << \"Press Enter to Continue\"; cin >> temp;
You need to include conio.h so try this, it's easy.
#include #include int main() { //some code like cout << "Press Enter to Continue"; getch(); return 0; }
With that you don't need a string or an int for this just getch();
getch();