Topic 2| Introduction to C++
C++
Introduction to C++
C++ usage
C++ Syntax
Code Example
1
, Topic 2| Introduction to C++
Introduction to C++:
C++ was developed by Bjarne Stroustrup, as an extension to the C language. C++ is a cross-
platform, machine independent, object oriented, case sensitive and compiled language.
A cross-platform computer product or system is a product or system that can work
across multiple types of platforms or operating environments.
You can use it to build applications that will run on many different operating systems. It
makes it easy to switch between different setups and target platforms. It provides support
for building, running and deploying C++ applications not only for desktop environments
but also for mobile devices.
Machine independent means its programs run at any architecture of computer
(hardware).
Basically when a program that run at any OS(operating system) means, that is
called platform independent and programs that run at any architecture of computer are
called machine independent.
C++ is called object oriented programming (OOP) language because C++ language views
a problem in terms of objects involved rather than the procedure for doing it. The core of
the pure object-oriented programming is to create an object, in code, that has certain
properties and methods. For example if we see around us there are objects everywhere
like fan, table, students etc.
Everything in C++ is associated with classes and objects, along with its attributes and
methods. For example: in real life, a car is an object. The car has attributes, such as
weight and color, and methods, such as drive and brake.
C++ is case sensitive means uppercase and lowercase letters are considered to be
different. For example a variable named name is different from Name, which is different
from NAME.
C++ is designed to be a compiled language, meaning that it is generally translated into
machine language that can be understood directly by the system, making the generated
program highly efficient.
2
C++
Introduction to C++
C++ usage
C++ Syntax
Code Example
1
, Topic 2| Introduction to C++
Introduction to C++:
C++ was developed by Bjarne Stroustrup, as an extension to the C language. C++ is a cross-
platform, machine independent, object oriented, case sensitive and compiled language.
A cross-platform computer product or system is a product or system that can work
across multiple types of platforms or operating environments.
You can use it to build applications that will run on many different operating systems. It
makes it easy to switch between different setups and target platforms. It provides support
for building, running and deploying C++ applications not only for desktop environments
but also for mobile devices.
Machine independent means its programs run at any architecture of computer
(hardware).
Basically when a program that run at any OS(operating system) means, that is
called platform independent and programs that run at any architecture of computer are
called machine independent.
C++ is called object oriented programming (OOP) language because C++ language views
a problem in terms of objects involved rather than the procedure for doing it. The core of
the pure object-oriented programming is to create an object, in code, that has certain
properties and methods. For example if we see around us there are objects everywhere
like fan, table, students etc.
Everything in C++ is associated with classes and objects, along with its attributes and
methods. For example: in real life, a car is an object. The car has attributes, such as
weight and color, and methods, such as drive and brake.
C++ is case sensitive means uppercase and lowercase letters are considered to be
different. For example a variable named name is different from Name, which is different
from NAME.
C++ is designed to be a compiled language, meaning that it is generally translated into
machine language that can be understood directly by the system, making the generated
program highly efficient.
2