Why Output Window disappears?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2007
Posts: 2
Reputation: Rimm is an unknown quantity at this point 
Solved Threads: 0
Rimm Rimm is offline Offline
Newbie Poster

Why Output Window disappears?

 
0
  #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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,442
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1474
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Why Output Window disappears?

 
0
  #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().
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 2
Reputation: Rimm is an unknown quantity at this point 
Solved Threads: 0
Rimm Rimm is offline Offline
Newbie Poster

Re: Why Output Window disappears?

 
0
  #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 Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC