After compiling console programs the console window closes immediately after running. What is the best practice for keeping it open? I\'ve searched google loads, I\'m used t
I use:
cin.get()
I heard it was less costly than system("PAUSE") and it works on POSIX systems too. There's a great link that goes into detail about this.