Here\'s a question that I don\'t quite understand:
The command, system(\"pause\"); is taught to new programmers as a way to pause a program and wait for
system(\"pause\");
Because it is not portable.
pause
is a windows / dos only program, so this your code won't run on linux. Moreover, system is not generally regarded as a very good way to call another program - it is usually better to use CreateProcess or fork or something similar.
system
CreateProcess
fork