I'm a novice programmer and have been learning C++ recently, after some research in how to pause my program at the end I upgraded from
system.get();
to a
cin.ignore();
cin.get();
combo. Would I be better suited to writing an if loop to wait for input at the end to close out the program, I understand that later in my experiences pausing the program at the end will cause user errors at the end.
I'm looking for the better way to do this.