User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Mar 2007
Posts: 2
Reputation: Rimm is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Rimm Rimm is offline Offline
Newbie Poster

Help Why Output Window disappears?

  #1  
Mar 4th, 2007
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 10,542
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 36
Solved Threads: 860
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Most Valuable Poster

Re: Why Output Window disappears?

  #2  
Mar 4th, 2007
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().
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
Reply With Quote  
Join Date: Mar 2007
Posts: 2
Reputation: Rimm is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Rimm Rimm is offline Offline
Newbie Poster

Re: Why Output Window disappears?

  #3  
Mar 4th, 2007
But when I run the same program on home PC, there is no problem. The output window stays until I hit the ENTER key.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C++ Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 9:32 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC