0% found this document useful (0 votes)
358 views25 pages

How To Download and Install Dev C++ 5.11

The document provides step-by-step instructions for downloading and installing the Dev C++ IDE software on Windows. It begins by explaining what an IDE is and then lists 14 steps, which include searching for the software online, clicking download, agreeing to terms, installing, and selecting default settings. It concludes by opening the software and writing a simple "Hello World" test program.

Uploaded by

Muhammad Haider
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
358 views25 pages

How To Download and Install Dev C++ 5.11

The document provides step-by-step instructions for downloading and installing the Dev C++ IDE software on Windows. It begins by explaining what an IDE is and then lists 14 steps, which include searching for the software online, clicking download, agreeing to terms, installing, and selecting default settings. It concludes by opening the software and writing a simple "Hello World" test program.

Uploaded by

Muhammad Haider
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 25

How to Download and Install

Dev C++ IDE(Integrated


Development Environment)

Shafeeq ur Rahman 03132333999


1
[email protected]
IDE
stands for Integrated Development Environment
It provides facilities to a computer programmer for developing software.

Shafeeq ur Rahman 03132333999


2
[email protected]
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
[email protected]
Step 3: click on this link of site
Sourceforge.net

Shafeeq ur Rahman 03132333999


4
[email protected]
Shafeeq ur Rahman 03132333999
5
[email protected]
Shafeeq ur Rahman 03132333999
6
[email protected]
Shafeeq ur Rahman 03132333999
7
[email protected]
Click on OK button

Shafeeq ur Rahman 03132333999


8
[email protected]
Click on I Agree button
Shafeeq ur Rahman 03132333999
9
[email protected]
Click on Next button

Shafeeq ur Rahman 03132333999


10
[email protected]
Click on Install button

Shafeeq ur Rahman 03132333999


11
[email protected]
It will take some time while Dev C+ 5.11 is being installed

Shafeeq ur Rahman 03132333999


12
[email protected]
Click on Finish button
Shafeeq ur Rahman 03132333999
13
[email protected]
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
[email protected]
You can also run Dev C++
from the start button

Shafeeq ur Rahman 03132333999


15
[email protected]
Shafeeq ur Rahman 03132333999
16
[email protected]
Click on File Menu
 New
 Source File

Shafeeq ur Rahman 03132333999


17
[email protected]
Shafeeq ur Rahman 03132333999
18
[email protected]
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
[email protected]
# 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
[email protected]
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
[email protected]
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
[email protected]
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
[email protected]
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
[email protected]
Click on execute this program
Go to Execute
 Compile & Run

Or

Press F11
(shortcut key for Compile & Run)

Shafeeq ur Rahman 03132333999


25
[email protected]

You might also like