Dev-C++
Dev-C++ is an integrated development environment (IDE) to write C++ programs. It is developed by Bloodshed Software. It is a graphical IDE that can be used to create C++ programs using the MinGW compiler system.
Installing Dev-C++
The following procedure is used to install Dev-C++:
- Download the latest version of Dev-C++ from the following:
- Double click the downloaded file. The installation process will start as follows:
The following screen will appear after a few seconds.
Click OK. The License Agreement screen will appear.
Click 1 Agree. The next screen will appear.
Click Next. The next screen will appear
Click Install. The installation process will start.
The following screen will appear when the installation is complete.
Configuring Dev-C++
The following procedure is used to configure Dev-C++
Start Dev-C++ for the first time. The following screen will appear.
Select English (Original) in Select your language list and click Next. The following screen will appear.
The Click Next. The following screen will appear.
Click OK. The main window of Dev-C++ will appear.
Click Tools > Compiler Options. The Compiler Options window will appearscreen6. Click Setting tab.
- Click Code Generation tab
- Select 150 C++ 11 from the list box next to Language standard (std)
- Click OK
Dev-C++ Menus
Some important menus of Dev-C++ IDE are as follows:
File
It contains the commands for creating new projects, opening existing projects, printing source code and exiting Dev-C++ IDE etc
Edit
It contains the command for copying the code, pasting the code, undo and redo etc
Search
It contains the commands for finding, replacing and going to a specific line number etc
Project
It contains the commands for adding or removing files from a project.
Execute
It contains the commands for compiling, running and debugging.
Tools
It contains the commands for applying different options.
Windows
It contains the commands for managing different windows in Dev-C++ IDE .
Help
It contains the commands for getting help about Dev-C++ IDE The user can press F1 to display help.
Creating and Editing a C++ Program
The following procedure is used to write a C++ program in Dev-C++
- Start Dev-C++.
- Click File > New > Project. The New Project window will appear.
- Click the type of project such as Console Application
- Type the project name in Name textbox
- Click OK The Save As dialog box will appear 6. Select the desired location to save the project files
- Click Save The new project will be created.
Type the following code:
Compiling a C++ Program
The following procedure is used to compile a C++ program in Dev-C++.
- Click Execute > Compile OR press F9. The program will be compiled.
Executing a C++ Program
The following procedure is used to execute a C++ program in Dev-C++.
- Click Execute > Run OR press F10. The program will be executed.
0 Comments