Installing and using Dev-C++

This little article will teach you how to install the latest version of Dev-C++ and how to write a C program in it. This way, you will know how to write C programs, compile, and find the executable.

Dev-C++ is not actually a compiler, but an IDE. The link below is an installation of Dev-C++ which is prepackaged with MinGW. MinGW is the GCC compiler but made for usability in Windows.

Downloading
Click on this



Installing
Hit all the next buttons before install Dev-cpp.

Using Dev-C++
By default Dev-C++ is installed to C:\Dev-Cpp.

Go there and open up the .exe called devcpp.

It should look something like this.



Creating a Project
To write a program, you have to make the source code files. To do this you create a project.

To create a project you go to File > New > Project.



A dialog will come up asking you what kind of project you would like to make, what you would like to name it, and if you want to compile in C++ or C. There are many project templates for different types of programs. Select the Console Application template and the language you want to compile in is C. Then name the project something. It would be recommended that when you save this project, that you should save it to it's own folder. You should probably make a folder under C:\Dev-Cpp called Projects and then make a folder this project. The reason being wherever you save this project it'll create multiple files and could get cluttered very fast if you do not make a folder.



Compiling and Executing
Compiling and executing a program is very simple. You can hit F9 to compile and execute or click the button.



If all goes well then a console should come up and display "Press any key to continue..."

The Interface
There are many features, and the Dev-C++ is pretty easy to understand. There are two important windows that you should know to get you started.

The first is where you actually edit the source code for your programs. It has syntax highlighting and formatting making it easier to read.



The second would be the navigating of your projects and your source code files. This is so you can see how your projects are organized.