First of all, what the hell is "cerr"? You might want to try using the correct word...
Second, what exactly are you trying to do? We can't help you if you don't tell us what the problem is.
Finally, your "pause" is not a pause at all... what is your statement ignoring? Nothing... you need to pass arguments to the function... try this.
1 2 3 4 5 6 7
void pause()
{
cin.clear();
cin.ignore(1, '\n');
cout << "Press Enter to continue...";
cin.ignore(numeric_limits<streamsize>::max(), '\n');
}
Then just call the function. You'll have to include the <limits> header file.