How to run a simple programming using Dev C++

The link of Dev-C++:  Once you get to the webpage scroll down to the bottom and there you will find three downloads.   You will want to download the first of the three items, which is titled: Dev-C++ 5.0 beta 9.2 ( (9.0 MB) with Mingw/GCC 3.4.2.
Below it you will find a link called SourceForge that will link you to:

Step 1


Run the program Dev C++

Step 2 Create a new source file

Step 3 Start to  write your program

Step 4 Compile the program

Step 5 The result of compiling

Step 6 Run the program


Testing a Data File 

Hello and I hope you are doing well. Module 2 assignments are very interesting where you start to see the power of the programming and that would be a great experience for you. Please try to experiment it  them by yourself as much as you can and that would be a way to understand data bases and even Google.

There are two ways that you can do it and I prefer the first at this time.

  1. By redirection “<” in the cmd mode   c:\my documents \testdatafile.exe<

Please refer to the end of chapter 3 on topic of Dos or Unix commands.


By using the file stream inside the program and please look at the Question Q3e at the end of chapter 3. In addition, I have dedicated  chapter 9-   file handling  to this cause.

The easiest way to link your executed program to a data file is by going to cmd (command mode) and simply use a redirection (I got so excited when I personally learned this and It was a best gift for me).

Here is help with using a data file in your program

  1. Type the program the same way you are doing interactively and save it as testdatafile.cpp.  Test your program for correctness by typing the data interactively
  2. Make a data file like making a program but choose =>new=>file=> resource and name it  as