You are on page 1of 25

How to Download and Install

Dev C++ IDE(Integrated


Development Environment)

Shafeeq ur Rahman 03132333999


1
ch.saint@gmail.com
IDE
stands for Integrated Development Environment
It provides facilities to a computer programmer for developing software.

Shafeeq ur Rahman 03132333999


2
ch.saint@gmail.com
Step 1: www.google.com
Step 2: type
dev C++ 5.11 download for windows
7

Step 3: click on this link of site


Sourceforge.net

Shafeeq ur Rahman 03132333999


3
ch.saint@gmail.com
Step 3: click on this link of site
Sourceforge.net

Shafeeq ur Rahman 03132333999


4
ch.saint@gmail.com
Shafeeq ur Rahman 03132333999
5
ch.saint@gmail.com
Shafeeq ur Rahman 03132333999
6
ch.saint@gmail.com
Shafeeq ur Rahman 03132333999
7
ch.saint@gmail.com
Click on OK button

Shafeeq ur Rahman 03132333999


8
ch.saint@gmail.com
Click on I Agree button
Shafeeq ur Rahman 03132333999
9
ch.saint@gmail.com
Click on Next button

Shafeeq ur Rahman 03132333999


10
ch.saint@gmail.com
Click on Install button

Shafeeq ur Rahman 03132333999


11
ch.saint@gmail.com
It will take some time while Dev C+ 5.11 is being installed

Shafeeq ur Rahman 03132333999


12
ch.saint@gmail.com
Click on Finish button
Shafeeq ur Rahman 03132333999
13
ch.saint@gmail.com
Here Dev C++ will ask for some setting but I would recommend
you to retain the default setting so just click on Next button until
the software launch.

Shafeeq ur Rahman 03132333999


14
ch.saint@gmail.com
You can also run Dev C++
from the start button

Shafeeq ur Rahman 03132333999


15
ch.saint@gmail.com
Shafeeq ur Rahman 03132333999
16
ch.saint@gmail.com
Click on File Menu
 New
 Source File

Shafeeq ur Rahman 03132333999


17
ch.saint@gmail.com
Shafeeq ur Rahman 03132333999
18
ch.saint@gmail.com
First program to display a message Hello World type the
following code in that new file that you have recently created
and save it with some name like Hello

#include <iostream>
using namespace std;

int main(){

cout<<"Hello World";

Shafeeq ur Rahman 03132333999


19
ch.saint@gmail.com
# include <iostream>

is a preprocessor directive. It tells the preprocessor to include


the contents of iostream header file in the program before
compilation. This file is required for input output statements.

Shafeeq ur Rahman 03132333999


20
ch.saint@gmail.com
using namespace std;
When C++ was originally designed, all of the identifiers in the C++ standard library
(including std::cin and std::cout) were available to be used without the std:: prefix.
However, this meant that any identifier in the standard library could potentially conflict
with any name you picked for your own identifiers. Code that was working might
suddenly have a naming conflict when you #included a new file from the standard
library. Or worse, programs that would compile under one version of C++ might not
compile under a future version of C++, as new identifiers introduced into the standard
library could have a naming conflict with already written code. So C++ moved all of the
functionality in the standard library into a special area called a namespace.

In C++, a namespace is a grouping of identifiers that is used to


reduce the possibility of naming collisions. It turns out
that std::cout‘s name isn’t really std::cout. It’s actually just cout,
and std is the name of the namespace that identifier cout is part
of. In modern C++, all of the functionality in the C++ standard
library is now defined inside namespace std (short for standard).
Shafeeq ur Rahman 03132333999
21
ch.saint@gmail.com
specifies the return type of a function

int main ()

Its function name

Every function should be followed by a pair of brackets

Every program in C++ begins executing at the function main()

A function is the main entity where all of the functionality of a program is defined. A
function takes some input, processes it according to the some code written in the
function body and produces an output which can be either sent to the user or can be
used by other functions.

Shafeeq ur Rahman 03132333999


22
ch.saint@gmail.com
Opening brace { and closing brace } mark the beginning and end of a
function. Anything which is inside the braces is the body of that function.

cout<<"Hello World";

The above line is a statement in C++. A statement must always


;
terminate with a semicolon otherwise it causes a syntax error.

When this statement is executed, it sends the string between the quotation
marks to the standard output stream object – cout.
cout is a predefined object in C++ and the standard output stream is
normally the screen.

Shafeeq ur Rahman 03132333999


23
ch.saint@gmail.com
The purpose of standard output stream object is to print the output on the device to
which it is connected. Normally, the output device is screen but it can be programmed to
output to any other device such as a printer. The following diagram illustrated the concept
of cout.

User Screen
Monitor

Object Insertion Operator String variable

Shafeeq ur Rahman 03132333999


24
ch.saint@gmail.com
Click on execute this program
Go to Execute
 Compile & Run

Or

Press F11
(shortcut key for Compile & Run)

Shafeeq ur Rahman 03132333999


25
ch.saint@gmail.com

You might also like