Basics of C++


The C++ Language was developed at AT&T Bell Laboratories by Bjarne Stroustrup. C++ pronounced C plus plus here “++” means the C increment operator. C++ supports the object oriented technology and C does not support object oriented language means real world entities. This is because C++ is the object oriented language. C is the structured programming language but C++ is the object oriented language.


C++ Basics…

  1. Character Set……set of valid characters that are used in a programming language:

   Letters---A-Z, a-z


Special Symbols--- + - * [] () & ? < >= (every symbol is different from each other)

White Space----Blank Space ,New Line

2. Tokens……….Smallest individual units in a program and these are:

Keywords----That convey a special meaning and are reserved like break, continue, this, goto etc     

Identifiers----Long sequence of letters and digits ex myfile , file1

3. Literals----called constants are data items that never change their value its fixed .                                  

          Several kinds of literals or we can say constants allows in C++ :                                                                                     

Integer—ex 2,6 8 9             C++ details


Float----2.6, -120


4. Punctuators----also known as separators like [],(),:;

5. Operators-----Symbolic representation and these are

Arithmetic -------+,/,*,-,%

I/O --------<< AND>>




Demonstration Tools:

     There are many C++ Compiler and these are:

Borland C++                                  

Turbo C++

C Front

Zortech C++


Turbo C++ and Borland C++ are mostly used C++ Compiler.The installation of Turbo C++ Compiler is very easy .Turbo C++ Compiler Contain directives such as:

  1. BIN:-include compiler and tools
  2. INCLUDE:-include header files
  3. BGI:-Contain Graphical files
  4. LIB:-Contain Library files
  5. Class LIB:-It contain library files and class files
  6. DOC:-It contain documentation