What is system(“pause”) and why is it considered bad practice?
In this video, I’ll teach you how to pause your C++ console before it closes so that you can read the output in the console.
I’ll explain three different ways to do this, and teach you about the system(“pause”) command and the problems that can occur if you use it.

Contents:

  • 00:00 - What is system(“pause”), and why is it considered bad practice?
  • 06:32 - Pause C++ Console App using cin.get()
  • 08:06 - Pause C++ Console App with breakpoints
  • 10:37 - Pause C++ Console App with Visual Studio “Start without debugging” option

#cplusplus

What Is System("pause") and Why Is It Considered A BAD PRACTICE? C++ Programming Common Questions
1.70 GEEK