Welcome to Introduction to C++! This set of notes will cover the following topics related to Control
Structures, Writing to the Console, Fundamental Data Types, and Variables:
Control Structures
Conditional Statements and Loops
Understanding conditional statements (if, if-else, switch)
Implementing basic loop constructs (for, while, do-while)
Writing to the Console / Formatting Output
Writing to the Console in C++
Using std::cout for output to console
Formatting Output in C++
Using std::setw, std::setfill, and std::fixed to format output
Fundamental Data Types / Variables
Fundamental Data Types in C++: An Overview
Understanding the basic data types (void, char, wchar_t, int, float, etc.)
Declaring and Initializing Variables in C++
Declaring and initializing fundamental type variables
Exploring variable shadowing and extern keyword
Data Types in C++: Size and Range of Short and Integer Types
Understanding the size and range of short and integer types
Initializing and Declaring Variables in C++
Exploring variable initialization syntax
Using in-class and default member initializers
Using Constants to Prevent Accidental Modifications
Declaring and using const variables
Mathematical Functions
Exploring Mathematical Functions in the C++ Standard Library
Functions available: sqrt, pow, sin, cos, etc.
Operators and Input/Output
Understanding Operator Precedence and Using Parentheses
Working with Variables and Data Types in C++
Understanding narrowing conversions
Structures, Writing to the Console, Fundamental Data Types, and Variables:
Control Structures
Conditional Statements and Loops
Understanding conditional statements (if, if-else, switch)
Implementing basic loop constructs (for, while, do-while)
Writing to the Console / Formatting Output
Writing to the Console in C++
Using std::cout for output to console
Formatting Output in C++
Using std::setw, std::setfill, and std::fixed to format output
Fundamental Data Types / Variables
Fundamental Data Types in C++: An Overview
Understanding the basic data types (void, char, wchar_t, int, float, etc.)
Declaring and Initializing Variables in C++
Declaring and initializing fundamental type variables
Exploring variable shadowing and extern keyword
Data Types in C++: Size and Range of Short and Integer Types
Understanding the size and range of short and integer types
Initializing and Declaring Variables in C++
Exploring variable initialization syntax
Using in-class and default member initializers
Using Constants to Prevent Accidental Modifications
Declaring and using const variables
Mathematical Functions
Exploring Mathematical Functions in the C++ Standard Library
Functions available: sqrt, pow, sin, cos, etc.
Operators and Input/Output
Understanding Operator Precedence and Using Parentheses
Working with Variables and Data Types in C++
Understanding narrowing conversions