You can try to use "cin.get()" to pause the execution.
To use
cin.get() to pause execution, you might have to call
cin.sync() first.
> The standard doesn't contain "system", and it's not portable.
system() is part of both the C and C++ standards, which must declare it in stdlib.h (or cstdlib).
I think it is more that the
"Pause" that
system() is calling is an executable that must exist in the current path; it may or may not exist/function in the same manor - depending on where the program is run - (or could possible be a virus hoping that you will run it by mistake!). (It is also misuse of
system(), as forcing the OS to search through the path and load a new program just to pause execution, is a huge amount of overhead to achieve a very tiny function.)