Professional Documents
Culture Documents
Chandra
Advantages of C++ Pranjal
Samiran
over any other
language…
Contents:
• Introduction to C++
• Features of C++
• Advantages of C++
• Applications of C++
• Bonus
Introduction to C++
C++ ( pronounced as “si-plas-plas”) is a general purpose programming language
created by Bjarne Stroustrup as an extension to the C language in 1985 (37 years ago).
The language evolved significantly over the years and now modern C++ has Object-Oriented,
Generic and Functional features in addition to facilities for Low-Level Memory
Manipulation
It is always implemented as a Compiled language and many vendors provide C++ compilers ,
including the Free Software Foundation, LLVM, Microsoft, Intel, Embarcadero, Oracle
and IBM. So, it is available on many platforms.
C++ was designed with systems programming and embedded, resource constrained software and
large systems in mind with performance, efficiency and flexibility of use as its design highlights.
C++ is found useful in many other contexts, with key strengths being software infrastructure and
resource-constrained application including desktop applications, video games, servers (e.g.
e-commerce, web search, or databases), and performance-critical applications (e.g.
telephone switches or space probes).
“There are only two kinds of languages: the ones people complain about
and the ones nobody uses.”
“It's easy to win forgiveness for being wrong; being right is what gets
you into real trouble.”
Object Oriented Programming
• It is a multi-paradigm
programming language.
Containers
Containers or container classes store objects and data. There are in total seven standard “first-class” container classes and three
container adaptor classes and only seven header files that provide access to these containers or container adaptors.
Sequence Containers: implement data structures which can be accessed in a sequential manner. vector list deque arrays
forward_list( Introduced in C++11)
Container Adaptors : provide a different interface for sequential containers. queue priority_queue stack
Associative Containers : implement sorted data structures that can be quickly searched (O(log n) complexity). set multiset map
multimap
Functions
The STL includes classes that overload the function call operator. Instances of such classes are called function objects or functors.
Functors allow the working of the associated function to be customized with the help of parameters to be passed.
Functors
Iterators
As the name suggests, iterators are used for working upon a sequence of values. They are the major feature that allow generality
in STL.
Iterators
Utility Library
Defined under <utility header>
Large Community Support
Scalability refers to
the ability of a
program to scale,
that means the C++
program is capable
of running on a small
scale as well as a
large scale of data.
Bonus
int main(){
std::cout<<“Thanks for Being Here”<<std::endl;
}