having issues trying to get it to run |
Getting it to compile without errors is an even bigger problem.
Missing closing braces, two of them, would solve the compiling problem.
One brace before main() to close off your Pause() function.
The second one is a bit harder to say where, either line 49 or line 53.
Fix that and it will compile.
cin.ignore(10000,'\n');
That doesn't extract and discard everything, just 10,000 characters in the stream. That works only if there are 10,000 or less characters still in the stream.
10,000 works because most compilers don't set the maximum size very high. I don't recall the standard setting what the size of a stream has to be. If an C++ implementation chooses to set a higher limit then your std::cin.ignore() version doesn't work properly.
If you want to ignore the characters to the maximum size of the stream, not matter what the implementation does:
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
Make sure to include
<limits>
.