But the problem with system ("pause") is that it's windows only. Also i heard it's less efficient than just cin.get(); etc.
Originally Posted by zeco
But the problem with system ("pause") is that it's windows only. Also i heard it's less efficient than just cin.get(); etc.
The problem with system("pause") is that is has to go allocate memory in your actual system, then pause everything your doing. This can add up to slower run-time in the long run.
That didn't work and I had too add ";" b4 return or it would compile after i did what you said? .....mind post the code whole so I see if i am doing it right?
Originally Posted by m4cizpr0
The problem with system("pause") is that is has to go allocate memory in your actual system, then pause everything your doing. This can add up to slower run-time in the long run.
seems to me if you want to pause it, runtime isn't a big issue. Anyway I didn't know that. I will add it to my code from now on.