You are on page 1of 10

Programming is the process of creating a set of instructions that tell a

computer how to perform a task. Programming can be done using a


variety of computer programming languages, such as JavaScript,
Python, and C++

INTRODUCTION TO
PROGRAMMING
Overview and Basic concept of C++

Sheraz Sarfaraz Khan


GPGC Mardan
WHAT IS PROGRAMMING ?
 Language has been our primary mean of communication and human
interaction for thousands of years. For a community, the language
contained the words that the people need to communicate, words
themselves are abstract, but they indicate the meaning, they point to
objects or actions, etc.
Definition
 The Programming or coding is pretty much like writing a paragraph
of instruction or creating a to-do list to computers. Unlike us
humans, the to-do list and instructions you write for the computer
has to be extremely detailed and written in some logic.
USE OF PROGRAMMING

 With code and programming, you can get the computer to draw
complex shapes and create rich computer graphics.

 With code and programming, you can create and send content all
over the world with your blog and personal website and style your
blog to meet your style.

 Furthermore, with code and programming, you can create smart


home applications, like an automated pet feeder, a smart mirror or
even create a robot that can help around with household tasks and
be your virtual assistant to talk to and understand you.
HISTORY OF C++

 C++ is a multi-paradigm programming language that supports object oriented


programming (OOP) created by Bjarne Stroustrup in 1983 at Bell labs, C++ is an
extension of C programming and the programs written in C language can run in C++
compiler.

 The development of C++ actually began four years before its release, in 1979. It did
not start with the name C++. Its first name was C with classes.

 In the late part of 1983, C with classes was first used for AT&T’s internal
programming needs. Its name was changed to C++ later in the same year.

 It is of course also used in a wide range of other application domains, notable


graphics programming. C++ supports inheritance through class derivation. Dynamic
binding is provided by Virtual class function.
USES OF C++ LANGUAGE
 C++ is used by programmers to develop computer
software
 It is used to create general system software

 Used to build drivers for various computer devices

 Software for servers and software for specific


applications.
 Used in the creation of video games.
DIFFERENCE BETWEEN C AND C++
 C is Procedural Language.
C++ is non-Procedural i.e. Object oriented Language.

 In C Top down approach is used in Program Design.


In C++ Bottom up approach adopted in Program Design.

 In C Multiple Declaration of global variables are allowed.


In C++ Multiple Declaration of global variables are not allowed.

 C requires all the variables to be defined at the starting of a scope.


C++ allows the declaration of variable anywhere in the scope i.e. at
time of its First use.
ADVANTAGES
 C++ is relatively-low level and is a systems programming language.
 It has a large community.
 It has a relatively clear and mature standard.
 Reusability and readability

 DISADVANTAGES
 Data is global or local.
 It emphasis on instructions bur not on data.
 It can be generally heavy if not careful.
 Data is global and global data does not have security.
WHAT IS IDE ?
 IDE or Integrated Development Environment is as the name suggests is a
digital environment used to develop games, software, hardware that offers
integration from debugging to all the way to compiling.

 Some C++ IDE supports only a single language like IDLE  supports only


Python on the contrary Xcode from Apple supports a bunch of languages
like C, C++, Java, and more. 
 Best C++ IDE’s are:

Visual Studio
Code Blocks
Eclipse
Code Lite
Sublime Text
FEATURES OF IDE’S

 Coding shortcuts 
 Auto correction 
 Refactoring 
 Diffing files 
 Organizing reports 
 Formatting source codes
 Command window
 Debugging support
 Deployment tools
 Database Explorer.
SIMPLE PROGRAM IN C++

#include<iostream.h> /*header File*/

int Main ( ) /*Main Function*/

cout<<“ Be a Kind Human “; /*Output Statement*/

You might also like