Thread: Getting started
View Single Post
Old 12-27-2003, 12:32 PM   #11 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Quote:
Originally posted by L06@N
The other way to run it w/o the cin.get(); is to compile it to .exe format and then run the .exe file from the Shell (aka DOS) prompt, but that does take a bit longer to do and is more or less the long way around it.
Basically that is the one and only correct way since it is a CONSOLE program after all. So good point there.

But if you don't wan't to start up the console (command) then use
"cin.get()" in a loop wich checks for a key-press and exits. This way you can can just double-click on your console proggy and use it like it is.
__________________
Valmont is offline   Reply With Quote