02-Overview of C++ (Part 1)
02-Overview of C++ (Part 1)
02-Overview of C++ (Part 1)
• For example:
#include <iostream>
– Causes the preprocessor to include the
header file iostream in the program
Sample Run:
Line 9: firstNum = 18
Line 10: Enter an integer: 15
Sample Run:
The numbers you entered are 15 for feet and 7 for inches.
The total number of inches = 187
The number of centimeters = 474.98
• One-Way Selection
• Two-Way Selection
• Multiple Selections: Nested if
• Condition’s evaluation to true and false
• Multiple Selections: switch Statement
Overview of C++
• Simple Data Types
• Arrays
• Passing parameters to functions
• Passing arrays to functions