Console close | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Console close

Wrote, all that was in this lesson. Everything was done through the console, compiled, opened the exe file, it started, and immediately closed. How to make sure that it does not close by itself?

8th Jan 2019, 2:05 PM
Дмитрий
2 ответов
+ 1
Write system("pause"); At the end of your program.
8th Jan 2019, 2:22 PM
Théophile
Théophile - avatar
0
What line is the error?
8th Jan 2019, 2:38 PM
Дмитрий