Students and Beginners want to execute C/C++ codes on their Windows PC, here in this tutorial they will find a way to do the same through Dev-C++ program.
2. We usually find a LINUX environment in college
labs when working with C or C++ Languages.
But it is a good practice to execute the codes on
our PC, through certain C/C++ Compilers like
Dev-C++ and Turbo C.
In this tutorial, I am using Dev-C++ (version5.0.0.4) on a 64-bit Windows machine.
The Execution may vary upon different system.
3. Things you need to have:
1. a Windows PC (a typical configuration is sufficient).
2. Dev-C++ program (ver.-5.0.0.4 or later is recommended)
installed on your PC.
3. a Sample Code of C/C++ program.
5. 2. Open a New File and select Project.
New Project.
6. 3.
Now a new window will open,
just select Console Application
and choose your desired language C or C++ and click OK.
Console
Application
C Project
7. 4. Save your Project.dev File into the desired directory.
You may rename it if you wish.
9. 6. Insert “getch();” without quotes before the termination of
C-code.
(Insert it before the return function, if there is any.)
getch();
* For C++ programs insert
“cin.get();”
before the termination of code.
It is included in the code to avoid the
flashing; your program can also
run without inserting this into the code.