•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 391,555 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,624 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 1127 | Replies: 2
![]() |
•
•
Join Date: Mar 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I am using Visual C++ 2005 in my laptop. When I run the program, the answer shows up on the output window (similar to the > command window) and within a second or two the window disappears. How can I fix this problem? The same happens when there is data input. I see the prompt for data input and before I enter the data, the output window disappears.
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 10,542
Reputation:
Rep Power: 36
Solved Threads: 860
you have to post code because I can not see your monitor from where I am sitting 
The most common reason the window closes quickly is because you did not add any code to make the window stop so that you can read it. If you are coding C program then add getchar() before the return statement in main().

The most common reason the window closes quickly is because you did not add any code to make the window stop so that you can read it. If you are coding C program then add getchar() before the return statement in main().
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
Similar Threads
- Dr.Python: running same output again (Python)
- Login Window Disappears (Windows 9x / Me)
- Java Pop Up Window Disappears when launched from Website... (Web Browsers)
- blood sheds cin.get (confusing) (C++)
- The case of the disappearing window (Windows NT / 2000 / XP / 2003)
Other Threads in the C++ Forum
- Previous Thread: A.cpp Won't Read A.h
- Next Thread: Is this situation a 'bad' use of the precompiler



Linear Mode