943,962 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 4514
  • C++ RSS
Mar 4th, 2007
0

Why Output Window disappears?

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Rimm is offline Offline
2 posts
since Mar 2007
Mar 4th, 2007
0

Re: Why Output Window disappears?

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().
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Mar 4th, 2007
0

Re: Why Output Window disappears?

But when I run the same program on home PC, there is no problem. The output window stays until I hit the ENTER key.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Rimm is offline Offline
2 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: A.cpp Won't Read A.h
Next Thread in C++ Forum Timeline: Is this situation a 'bad' use of the precompiler





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC