ms visual C++ 6.0

G

Guest

Hello,
I'm practising and running simple programs in C++, only after it's run, the
output window disapears. How can I watch the resualts? thanks,
Hezy.
 
G

Guest

ניר said:
Hello,
I'm practising and running simple programs in C++, only after it's run, the
output window disapears. How can I watch the resualts? thanks,
Hezy.

Hi Hezy!

The easiest way to do this would be to prompt for some input before your
program ends. For instance, you could call getch().

Regards,

Carlos
 
W

William DePalo [MVP VC++]

??? said:
I'm practising and running simple programs in C++, only after it's run,
the
output window disapears. How can I watch the resualts? thanks,

If you don't want to instrument your executable, you can open a command
prompt and "cd" to the release or debug directory of your project. Then
after you build it, you just type its name at the prompt.

Regards,
Will
 
P

pvdg42

??? said:
Does one of the menus offer an option to do that (open the output
window...)?
It's been quite a while since I've used Visual Studio 6, but is there a
"Start Without Debugging" command available from the Debug menu? If so, run
your program using that command, and the output window will remain visible
for output inspection after the program ends.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top