From: Mr. B. C. P. <phu...@gm...> - 2009-01-31 10:17:22
|
When you run your source code, if the compiling is OK, then the console window appear for a fraction of second and instantly disappear. Now to execute your .exe file, go to Start > Run > type cmd , then you get your console window. Now go to DOS prompt, type cd c:\ and it will lead you to DOS prompt. At DOS prompt type dev-cpp\MyPrograms or in whatever folder you have saved your . c/.cpp file then type the file name. exe. Hit enter and your program will be executed. It is always helpful to make a folder named MyPrograms in MinGW under Dev-C++ and save your compiled source codes with .c/cpp extension. The executed file will automatically be saved in MyPrograms folder. Whenever you want to run the programs, you can do it from MyPrograms folder. The console window will remain as long as you want and can be exited by typing exit at DOS prompt. I hope this will be of some help. |