c++ - system("pause"); - Why is it wrong? - Stack Overflow
It's frowned upon because it's a platform-specific hack that has nothing to do with actually learning programming, but instead to get around a feature of the IDE/OS - the console window launched from Visual Studio closes when the program has finished exec...