Hi i am trying to start doing C++ programming
when i write a simple hello programm
it is compiling correctly and the out put window is not staying on the screen , i am unable to see it
it is suddenly disappearing
can any one help me
gtsreddy
0
Newbie Poster
Recommended Answers
Jump to PostYou need to do it in dos. First you open up the dos program and find the directory and the file. Then press enter when you found the program. This will make it stay open. Or you can open dos and drag the .exe into the dos program itself and …
Jump to PostAdd to the end of the program, just before the closing bracket
getchar ();
Aha...C++...
It should be something like... using namespace std; ... //your code ... cin.get(); //end program
All 5 Replies
Dark_Omen
5
Posting Pro
frrossk
2
Posting Whiz in Training
gtsreddy
0
Newbie Poster
frrossk
2
Posting Whiz in Training
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
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.