473,474 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Output Window flashes and closes

25 New Member
Hello,
Though I have given getchar(); at the end of my C++ program, it displays the output but the cmd window just flashes and closes immediately. It is a huge pgm of abt 500+ lines and deals with a lot of data. So can anyone tell me how i shud retain the cmnd window so that i can know my output?? I also tried system("pause"); but with no help. Pls tell me what has to be done?
Thanks,
prads
Nov 9 '07 #1
5 2428
Studlyami
464 Recognized Expert Contributor
If your using Visual Studios you can debug your program and set up a breakpoint before you return 0; to see the output or you can run the program without debugging which makes you press a key to close the window.
Nov 9 '07 #2
beacon
579 Contributor
When you tried system("pause"), are you using the using namespace std? If you aren't using that, it's been my experience that you have to type in just ("pause") without the system preceeding it.
Nov 11 '07 #3
sicarie
4,677 Recognized Expert Moderator Specialist
You could always do a "Press enter to continue" and use a cin.
Nov 12 '07 #4
oler1s
671 Recognized Expert Contributor
When you tried system("pause"), are you using the using namespace std? If you aren't using that, it's been my experience that you have to type in just ("pause") without the system preceeding it.
That doesn't even make sense beacon. Think about it for a moment, and ask if you don't know why it's utterly silly.
Nov 12 '07 #5
beacon
579 Contributor
That doesn't even make sense beacon. Think about it for a moment, and ask if you don't know why it's utterly silly.
Hey, I didn't claim to be some kind of master user...I was just offering a suggestion. I had it come up in my last semester of computer science and it worked for me. How??? Heck if I know.

I don't know why you think it's silly and honestly I couldn't care less. Why you would contribute something like that when it's in no way helpful to the person that posted this in the first place is beyond me.

So go ahead and explain it if it will make you feel better or it will stroke your ego to know that you know something I don't.
Nov 12 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Grzegorz | last post by:
Hello, I'm using eclipse with pydev plugin, I'm working on a program using wxpython . When I'm executing that application standard error output does not show in eclipse console window - wxpython...
4
by: John H. | last post by:
Hello I have some trouble in closing a window, Here is the problem: I develop a asp.net website use client side valiation <asp:CustomValidator id="CustomValidator1"...
14
by: Nigel Mercier ® | last post by:
I'm just starting to learn JavaScript, so far I like it! I want to add some JS to my Ebay listings, to manually open a pop-up window. It works OK, but the JS gets rejected by Ebay. If I can't...
2
by: Peter Kirk | last post by:
Hi I am "playing" with some simple aspects of C# with Visual Studio. All I would like to know right now is how do I get the Console.Write method to write its output in the Visual Studio...
2
by: Ken | last post by:
Hello, I have a small VB.NET form that I open with a showdialog. When it closes, the entire mdi form flashes. This app is developed with VS 2003 and runs on Windows 2000. Any suggestions...
2
by: Damian | last post by:
Hi ! I am trying to dispose of the startup form in my application a login form (frmLogin) after it calls the main form (frmMain). I cant seem to get it to work. Here is my code. frmLogin Code...
3
by: Jason | last post by:
I've got a simple program in which I just write something to the console output window, but when I compile and run the program, the output windows displays the output and closes right away. How do...
0
by: Burt | last post by:
I have an ASP.NET page that performs a window.open to an HttpHandler that streams a binary file to the brower. I am forcing the save_as... dialog in IE. My issue is that in IE6 the new window...
3
by: TC | last post by:
I'm trying to debug a console application, but I can't see the console output. I've seen many references which say that console output is supposed to appear on the Output window when the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.