This doesn\'t work:
string temp; cout << \"Press Enter to Continue\"; cin >> temp;
Try:
cout << "Press Enter to Continue"; getchar();
On success, the character read is returned (promoted to an int value, int getchar ( void );), which can be used in a test block (while, etc).
int
int getchar ( void );
while