how to work with dev-c++

13
How to Work with Dev-C++ Compile and Execute C/C++ Code

Upload: deepak-jha

Post on 25-May-2015

177 views

Category:

Education


4 download

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++

How to

Work with Dev-C++ Compile and Execute C/C++ Code

Page 2: How to Work with Dev-C++

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++

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++

Steps for Execution:

1. Run the Dev-C++ program on your PC.

Page 5: How to Work with Dev-C++

2. Open a New File and select Project.

New Project.

Page 6: How to Work with Dev-C++

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++

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++

5. Now write your code in the editor console.

Page 9: How to Work with Dev-C++

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++

7. Save your Code into the same directory.

Page 11: How to Work with Dev-C++

8. Now Compile and Run your Code,

or Just press the F9 key for the same.

Page 12: How to Work with Dev-C++

You’ll find your code running.

The output of the program.

Hello

Page 13: How to Work with Dev-C++

If you find this tutorial helpful, Subscribe for more:

www.slideshare.net/deepakjha-dj

© Deepak Jha Thank you!