Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Tokens
DEFINITION: The smallest individual unit in a program is
called as “token”.
C++ tokens
Keywords – Words reserved for use by the language.eg.
Enum,Delete,Friend.
Identifiers – Identifiers refers to the name used to identify
variables,functions, classes ,arrays. Eg int x, class student
Constants – A value declared as constant cannot be
manipulated.
Eg. Const int size =10
Char name (size) ;
Strings - is nothing but an array of characters.
Operators
Defn.Operators are symbols used in C++ to perform a certain
activity.
Operator types
<< Insertion operator
>> Extraction operator
:: Scope resolution operator
::* Pointer-to-member declarator
->* Pointer-to-member operator
.* Pointer-to-member operator
Delete Memory release operator
Endl Line feed operator
New Memory allocation operator
Setw Field width operator
Hierarchy of C ++ data types
C++ Data types
Built-in type
User-defined type Derived type
Structure
Union array
class function
enumeration pointer
Action 1 Condition
loop
True
Action 1 Action 2 Condition Action 1
Action 2
False
Exit
Action 2
Action 3
Action 3
(a) Sequence (b) Selection ( c ) Loop
C++ statements to implement control
structures
Control structures