You will need to build your own functions. Copy and paste this to a file to back it up.
Code:
#include <string>
#include <climits>
using namespace std;
void reset_istream( )
{
//Reset failstate just in case.
cin.clear();
cin.ignore(numeric_limits<streamsize>::max(), '\n');
}
//--------------------------------------------------- void wait_for_enter()
{
cout << "press <enter> to continue...\n";
// Reset failstate, just in case.
cin.clear();
string line;
getline( cin, line);
} You can see in this thread:
http://codenewbie.com/forum/showthre...&threadid=2482
how to use it.