This doesn\'t work:
string temp; cout << \"Press Enter to Continue\"; cin >> temp;
Try:
char temp; cin.get(temp);
or, better yet:
char temp = 'x'; while (temp != '\n') cin.get(temp);
I think the string input will wait until you enter real characters, not just a newline.