Introduction
Get up and running with C++
()
What you should know
()
About the exercise files
()
1. Getting Started
Setting up the development environment
()
Elements of object-oriented programming
()
Creating a simple program in C++
()
Challenge: Console interaction
()
Solution: Console interaction
()
2. Data Types
Basic data types
()
Variables
()
Expressions, assignments, and operations
()
Type inference with auto
()
Preprocessor directives
()
Constants
()
Arrays
()
Strings
()
Type casting
()
Challenge: Calculate an average
()
Solution: Calculate an average
()
3. Structures, Classes, and Pointers
Structures
()
Classes
()
Header and implementation files
()
Pointers
()
References
()
Vectors
()
Challenge: Create some classes
()
Solution: Create some classes
()
4. Control Flow
If statements
()
Switch statements
()
While loops
()
For loops
()
Challenge: Calculate GPA from a vector
()
Solution: Calculate GPA from a vector
()
5. Functions
Creating functions
()
Using functions
()
Function parameters
()
Challenge: Create a report card function
()
Solution: Create a report card function
()
6. File I/O
Opening a text file for reading
()
Open a text file for writing
()
Challenge: Upgrade to work with files
()
Solution: Upgrade to work with files
()
Ex_Files_Learning_Cplusplus.zip
(268 KB)