How to run a simple programming using Dev C++
The link of Dev-C++: http://www.bloodshed.net/dev/devcpp.html. 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 (22.214.171.124) (9.0 MB) with Mingw/GCC 3.4.2.
Below it you will find a link called SourceForge that will link you to:http://sourceforge.net/project/downloading.php?groupname=dev-cpp&filename=devcpp-126.96.36.199_setup.exe&use_mirror=voxel
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.
- By redirection “<” in the cmd mode c:\my documents \testdatafile.exe< testdatafile.in
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
- 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
- Make a data file like making a program but choose =>new=>file=> resource and name it as testdatafile.in