| | |
Why Output Window disappears?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2007
Posts: 2
Reputation:
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.
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().
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.
![]() |
Similar Threads
- Dr.Python: running same output again (Python)
- Login Window Disappears (Windows 95 / 98 / 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)
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
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game generator getline google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number output parameter pointer problem program programming project proxy python random read recursion recursive return sorting string strings struct template templates test text text-file tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






