Originally Posted by
RaisinToe
although it still has to use a premade function getline.
Of course. Since you are using cin, you are bound to use some of the functions supplied by std::istream (i.e., the std::cin's type).
That said, instead of creating a temporary array, it would be easier to write:
Code:
cin.ignore(100, '\n');
cin.get();
Or more properly, you could #include <limits> and write:
Code:
cin.ignore(numeric_limits<streamsize>::max(), '\n');
cin.get();
However, better ways include running the program from the command prompt or from an IDE that pauses the program for you.