I recently started visual studio 2010.After searching in google I was able to create a .cpp program. everything is fine; I can build it and run it without getting errors.But everywhere in the internet I see when they run the program they can see a black command prompt window which shows the result clearly and on the next line has a message :"Press any key to continue....". But when I run my program the black command prompt window shows for a second without letting me have an option to press any key to continue. I can see the result of my program just for a second and then its gone. If you can help me in this matter I will be appreciated.
All 4 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.