Lately, I've been trying to learn C++ from this website. Unfortunately whenever I try to run one of the code samples, I see that program open for about a half second and then immediately close. Is there a way to stop the program from closing immediately so that I can see the fruits of my effort?
C++ – How to stop C++ console application from exiting immediately
cc++-faqconsoleexitterminate
Related Topic
- C# – How to update the current line in a C# Windows Console App
- Visual-studio – Preventing console window from closing on Visual Studio C/C++ Console application
- C++ – How to achieve the theoretical maximum of 4 FLOPs per cycle
- Node.js – How to change node.js’s console font color
- C++ – Image Processing: Algorithm Improvement for ‘Coca-Cola Can’ Recognition
- C++ – How to stop C++ console closing immediately after first input
Best Answer
If you are using Visual Studio and you are starting the console application out of the IDE:
pressing CTRL-F5 (start without debugging) will start the application and keep the console window open until you press any key.