Chapter 2
Chapter 2
Chapter 2
Programming
with C++
Reema Thareja
• The source code file contains the source code of the program.
The file extension of any C++ source code file is .cpp .
• There are functions which are used without coding. These
functions are already written and compiled for ease of
programmers. We just need to link the desired library
function’s code with our code.
• Such functions provided by all C++ compilers are included in
standard header files.
• We can use the << operator multiple times in the same line.
This is called cascading.
• Similar to cout, cin can also be cascaded. For example,
Equality Operators