Hello there, I just installed Visual Studio.net 2003 last week. When I try to start my program, the console appear and close as soon as the program ends. What is the setting to keep the console open, so I can see if my program works? Thanks Nicole
nicoletonyf
0
Newbie Poster
Recommended Answers
Jump to Postuse cin.get() at the end of ur program
#include<iostream> using namespace std; int main() { //your code here cin.get(); return 0; }
If this still doesnt work use cin.get() twice
#include<iostream> using namespace std; int main() { //your code here cin.get(); cin.get(); return 0; …
All 3 Replies
Asif_NSU
25
Posting Whiz
jascotty
-3
Newbie Poster
Dave Sinkula
commented:
Don't bump 4-year-old threads to offer poor advice.
-3
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.