C++ Introduction

C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes".

C++ Introduction

In this tutorial, we will have the basic introduction of C++ with the help of examples and provide you a path for completing this course.


  • C++ programming language was developed at AT&T Bell Laboratories in the early 1980s by Bjarne Stroustrup.
  • C++ is the extended version of Simula 67.
  • Simula 67 was one of the earliest object-oriented languages.
  • C++ is getting advanced and better with the help of its users and through the discussions at AT&T.
  • The maturation of the C++ language was attested by two events:
    • The formation of an ANSI ( American National Standard Institute ) C++ committee and
    • the publication of the Annotated C++ Reference Manual by Ellis and Stroustrup.


When we are working on a program using C++ we consider that it can be defined as a group of objects that can be linked to each other or communicate with each other via invoking each other's methods. Let us now briefly look into what a class, object, methods, and instant variables mean.

  • Object − Objects have states and behaviors or features associated with them. Example: A car has - color, name, company, model. An object is an instance of a class.

  • Class − A class is defined as a template/blueprint that describes the features of the object of its type.

  • Methods − A method is the behavior associated to some Class. The class can have many methods. Methods contain logic written in them,  It also manipulates data and executes all the actions linked with it.

  • Instance Variables − Each object has its unique set of instance variables. An object's state is created by the values assigned to these instance variables.

C++ Character Set:

  • A character set is a set of valid characters that language can recognize.
  • A character represents any letter, digit, or any other sign.
  • C++ has the following character set:
    • Letters  => A-Z, a-z
    • Digits => 0-9
    • Special Symbols=> Space + - * / ^ \  (  ) [ ]  { }  etc….
    • White Spaces => Blank Space, Horizontal tab (->) etc..
    • Other Characters => C++ can process any of the 256 ASCII characters as data or as literals.


  • The smallest individual unit in a programs know in as a Token
  • C++ has the following tokens:
    • Keywords
    • Identifiers
    • Literals
    • Punctuators
    • Operators

We will dive deeper into these concepts in further tutorials. Let us first discuss the path to learn C++.

Path to Learn C++:

We highly recommend you for completing this course till the end, We will cover each and every topic related to C++ and programming.

Steps you should follow while learning C++ :

  • Start from the basics.
  • Do not skip any concept.
  • Dive deep into each concept.
  • Solve questions related to the topics.
  • Master the Data Structure and Algorithm.
  • Do not get frustrated if you get stuck at any topic or question.
  • Take your time, take a break, and try again.
  • Look at different resources to solve the problem.
  • While completing this course start solving questions on https://www.hackerrank.com.

Best of luck with your journey to learn C++.