[Dev-C++] Re: [Dev-C++) Window disappearing
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2002-07-13 21:01:27
|
Run console programs from a console. Go to Start > Run, type in 'command'
(or 'cmd' on NT/2000) and navigate to the directory containing your project.
For example, if it's in D:\\Code\\Myprog, you'll do
d:<ENTER>
cd \code\myprog<ENTER>
And there, type in the name of the executable, say 'sivashankar'. For a list
of files in the directory, type
dir<ENTER>
Note that the console might open in full-screen mode, in which case, you'll
have to press ALT+ENTER to window it.
You can run the console concurrently with Dev.
You can also put a system("pause"), but that's windows/DOS specific, and
won't work on other platforms... and it's illegitimized by the Glenfield
standard. Oh, well.
One more thing - main() should always return an int, as defined in the
lesser-known ANSI standard.
--------------------------
Checked with NAV 2002
http://mudeth.tripod.com
|