Hey guys,how can i retain the output window when stdio is used as my header?
iblanq
0
Newbie Poster
Recommended Answers
Jump to Postyou mean after your program exists? run your program in a console window instead of from within the IDE.
Jump to PostIf I understand you, console (output window) will close when C++ program ends in Visual Studio.
There are many ways to prevent it from doing that here are 2 basic ones.
Add one of those 2 lines at the end of your program just above return 0;int x; cin …
Jump to PostOr just simply
cin.get()
All 11 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Kristian_2
11
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
ravi_14
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
ravi_14
0
Light Poster
mridul.ahuja
4
Coding Enthusiast
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
mridul.ahuja
4
Coding Enthusiast
sepp2k
378
Practically a Master Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.