TOKENS in C++

tokens in c++

The smallest individual units in program are known as tokens. A C++ program is written using these tokens, white spaces and the syntax of the language. C++ has the following tokens. Keywords Identifiers Constants Strings Operators 1. Keywords: The keywords implement specific C++ language feature. They are explicitly reserved identifiers and can’t be used as names for the program variables or other user defined program elements. ISO C++ (C++98) Keywords • and• and_eq• asm• auto• bitand• bitor• bool• break• case• catch• char• c lass• compl• const• const_cast• continue• default• delete•…

Read More

POP vs OOP

Difference Between Procedure Oriented Programming (POP) & Object Oriented Programming (OOP) Procedure Oriented Programming Object Oriented Programming 1 Programs are divided into small parts called functions. Programs are divided into parts called Class. 2 Importance is not given to data but to functions as well as sequence of actions to be done. Importance is given to the data rather than procedures or functions because it works as a real world. 3 POP follows Top Down approach. OOP follows Bottom Up approach. 4 POP does not have any access specifier. OOP…

Read More

Structure of C++ Program

The program written in C++ language follows this basic structure. The sequence of sections should be as they are in the basic structure. A C-program should have one or more sections but the sequence of sections is to be followed.
Documentation section
Linking section
Definition section
Global declaration section & class declarations
Member function definition
Main function

Read More

BASIC CONCEPTS OF OOP

oop features

Basic Concepts of Object Oriented Programming Objects Classes Inheritance Polymorphism Data abstraction Data Encapsulation Dynamic binding Message passing OBJECTS Objects are the basic run-time entities in an object-oriented system. They may represent a person, a place, a bank account, a table of data or any item that the program must handle. The fundamental idea behind object oriented approach is to combine both data and function into a single unit and these units are called objects. The term objects means a combination of data and program that represent some real word…

Read More

Why you should learn C++ ?

Why Learn C++

This will clarify what makes a C++ special in its approach to programming problems. You should select one imperative language and in this C will probably have a better market value and will have a direct relation to C++ (a good substitute would be ASM) and the second language should be an Object Oriented language like Java or android for the same reasons, as there is a close relation between the tree of languages.

Read More