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?

c++

1/8/2019 2:05:22 PM

Дмитрий

2 Answers

New Answer

+1

Write system("pause"); At the end of your program.

0

What line is the error?