Basics of C++

Introduction

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

  Digits----0-9

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

Character---‘a’,’b’

Float----2.6, -120

String---“good”,”luck”

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

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

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

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

Logical------&&,||,!

Conditional---?:

Increment/decrement------++,--

Demonstration Tools:

     There are many C++ Compiler and these are:

Borland C++                                  

Turbo C++

C Front

Zortech C++

GNU 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

  

About Us

Rekha SetiaRekha Setia is a passionate blogger of Extra Computer Notes. if you have any ideas or any request me @