Introduction To C++ and Language Building Blocks PDF
Introduction To C++ and Language Building Blocks PDF
BUILDING BLOCKS
Engineer Jokhio Sultan Salahuddin Kohistani
Lecturer, Computer Systems Engineering, MUET
Jamshoro
E-mail: [email protected]
Facebook: http://www.fb.com/salahuddinjokhio
Reference Books
Object Oriented Programming in C++
By Robert Lafore.
4th Edition or latest
This book will be used as text book.
For Further Studies, you may refer to;
C++, How to Program
By Dietel and Dietel.
C++, The Complete Reference
By Herbert Scheldt.
I hear, I forget;
I see, I remember;
I do, I understand.
Bottom Up.
Vice versa of Top Down Approach.
Our Approach.
Both approaches parallel.
1 0 1 1 0 1 1
Machine BCPL C
Language Language Language
A
Language,
B
Language
C++
an Language
Assembly
Language
C & C++ are Case-Sensitive languages (A is not equal to a, both are different
identifiers).
Polymorphism
Encapsulation
End of Main
Function
cout<<Hello\n;
cout<<123;
cout<<234+56;
Note:You dont need to remember this entire table, what you have to remember,
is the exact name of the data-type.
Now you have every reason to smile. Smile please but not
to laugh, this is not that much easy.
35 Engr. J.S. Salahuddin Kohistani, Lecturer, CSE MUET
Jamshoro
Manipulators
They are some keywords, which are used to manipulate (modify/change) the
output from its original appearance.
endl Manipulator
Inserts a new line, and is used with cout statement.
cout<< Hello<<endl<<Bye;
setw Manipulator
Inserts a some spaces in the output, and is used with cout statement.
Also requires header file named iomanip
cout<< Hello<<setw(12)<<Bye;
Tired!
A tight sleep!