how to work with dev-c++
DESCRIPTION
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.TRANSCRIPT
![Page 1: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/1.jpg)
How to
Work with Dev-C++ Compile and Execute C/C++ Code
![Page 2: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/2.jpg)
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++ (version- 5.0.0.4) on a 64-bit Windows machine. The Execution may vary upon different system.
![Page 3: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/3.jpg)
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.
![Page 4: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/4.jpg)
Steps for Execution:
1. Run the Dev-C++ program on your PC.
![Page 5: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/5.jpg)
2. Open a New File and select Project.
New Project.
![Page 6: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/6.jpg)
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
![Page 7: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/7.jpg)
4. Save your Project.dev File into the desired directory. You may rename it if you wish.
![Page 8: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/8.jpg)
5. Now write your code in the editor console.
![Page 9: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/9.jpg)
6. Insert “getch();” without quotes before the termination of C-code. (Insert it before the return function, if there is any.)
* For C++ programs insert “cin.get();” before the termination of code.
getch();
It is included in the code to avoid the flashing; your program can also run without inserting this into the code.
![Page 10: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/10.jpg)
7. Save your Code into the same directory.
![Page 11: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/11.jpg)
8. Now Compile and Run your Code,
or Just press the F9 key for the same.
![Page 12: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/12.jpg)
You’ll find your code running.
The output of the program.
Hello
![Page 13: How to Work with Dev-C++](https://reader036.vdocument.in/reader036/viewer/2022081203/556209bdd8b42a7d028b49a6/html5/thumbnails/13.jpg)
If you find this tutorial helpful, Subscribe for more:
www.slideshare.net/deepakjha-dj
© Deepak Jha Thank you!