OK so, I'm currently making a text based RPG game using C++ in a Microsoft visual c++ IDE. What I'm having trouble doing is finding a way to do a simple "Press any key to continue" to move onto the next cout message. I've ive been doin it in a very annoying way and I know there are much better ways of doing this.
using namespace std;
cout << "Random message\n";
cin >> x; /* Ive been using cin to move onto the next cout by typing in a random
number/character then hitting enter, which then of course allows for the next
cout message to be displayed to the screen */
cout << "another random message\n";