Basic Elements of C++
Basic Elements of C++
• For example:
#include <iostream>
– Causes the preprocessor to include the header file
iostream in the program
• Preprocessor commands are processed before the
program goes through the compiler
y = w + x; //Line 4: error
• expression is evaluated
• value is printed
• manipulator is used to format the output
– Example: endl
• Example:
– cout << setfill('#');