O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C++11 Fundamentals Parts I, II, III, and IV

Video Description

Sneak Peek

The Sneak Peek program provides early access to Pearson video products and is exclusively available to Safari subscribers. Content for titles in this program is made available throughout the development cycle, so products may not be complete, edited, or finalized, including video post-production editing.

Before You Begin

Introduction (Windows)
Checking Your Setup/Launching Visual Studio
Creating a Project and Adding GuessNumber.cpp
Compiling and Running the Project

Introduction (Mac)
Launching Xcode, Creating a Project and Adding GuessNumber.cpp
Compiling and Running the Project

Lesson 2: Introduction to C++
Intoduction
First C++ program; Output with cout
Displaying a Single Line of Text with Multiple Statements
Displaying Multiple Lines of Text with a Single Statement
Adding Integers; Input with cin
Arithmetic operators
The if statement and the relational and equality operators

Lesson 3: Introduction to Classes
Introduction
Creating and manipulating an Account object
Account class that contains a name data member and member functions to set and get its value.
Using the debugger to understand the flow of control as you interact with objects
Account class with a constructor that initializes the account name.
Aside: Software engineering with set and get member functions
Account class with name and balance data members, and a constructor and deposit function that each perform validation.

Lesson 4: Control Statements, Part 1
Introduction
Keywords
if Statement
if...else Statement
Nested if...else Statement
Conditional Operator (?:)
Counter-Controlled Iteration
Sentinel-Controlled Iteration
Compound Assignment Operators
Increment and Decrement Operators

Lesson 5: Control Statements, Part 2
Introduction
Essentials of counter-controlled iteration
Counter-controlled iteration with the for statement
Application: Summing Even Integers
Application: Compound-Interest Calculations
Floating-point numbers and representational error
Overview of the Case Study: Integer-Based Monetary Calculations with Class DollarAmount
Performing monetary calculations with class DollarAmount
DollarAmount class implementation
do…while iteration statement
Using a switch statement to count letter grades
break statement exiting a for statement.
continue statement terminating an iteration of a for statement
Logical operators

Lesson 6: Functions
Introduction
Function Prototypes
More about function prototypes; Argument coercion
C++ Standard Library Headers
Rolling a six-sided die.
Rolling a Six-Sided Die 60,000,000 Times
Randomizing the Random-Number Generator with srand
Case Study: Game of Chance; Introducing Scoped enums
C++ 11 (and higher) nondeterministic random numbers
Scope Rules
Inline functions
References and Reference Parameters
Default Arguments
Unary Scope Resolution Operator
Function Overloading
Function templates
Recursion

Table of Contents

  1. Before You Begin
    1. Before You Begin 00:10:00
  2. None
    1. Introduction 00:01:55
    2. Checking Your Setup/Launching Visual Studio 00:02:53
    3. Creating a Project and Adding GuessNumber.cpp 00:05:53
    4. Compiling and Running the Project 00:08:10
  3. None
    1. Introduction 00:01:46
    2. Launching Xcode, Creating a Project and Adding GuessNumber.cpp 00:11:58
    3. Compiling and Running the Project 00:05:31
  4. Lesson 2: Introduction to C++
    1. Intoduction 00:01:59
    2. First C++ program; Output with cout 00:15:13
    3. Displaying a Single Line of Text with Multiple Statements 00:02:24
    4. Displaying Multiple Lines of Text with a Single Statement 00:01:10
    5. Adding Integers; Input with cin 00:15:54
    6. Arithmetic operators 00:02:18
    7. The if statement and the relational and equality operators 00:09:18
  5. Lesson 3: Introduction to Classes
    1. Introduction 00:04:10
    2. Creating and manipulating an Account object 00:14:57
    3. Account class that contains a name data member and member functions to set and get its value. 00:15:51
    4. Using the debugger to understand the flow of control as you interact with objects 00:10:45
    5. Account class with a constructor that initializes the account name. 00:19:39
    6. Aside: Software engineering with set and get member functions 00:04:59
    7. Account class with name and balance data members, and a constructor and deposit function that each perform validation. 00:22:31
  6. Lesson 4: Control Statements, Part 1
    1. Introduction 00:01:30
    2. Keywords 00:01:55
    3. if Statement 00:01:43
    4. if...else Statement 00:01:17
    5. Nested if...else Statement 00:01:53
    6. Conditional Operator (?:) 00:01:47
    7. Counter-Controlled Iteration 00:06:16
    8. Sentinel-Controlled Iteration 00:11:24
    9. Compound Assignment Operators 00:01:33
    10. Increment and Decrement Operators 00:04:40
  7. Lesson 5: Control Statements, Part 2
    1. Introduction 00:02:06
    2. Essentials of counter-controlled iteration 00:03:03
    3. Counter-controlled iteration with the for statement 00:03:33
    4. Application: Summing Even Integers 00:01:55
    5. Application: Compound-Interest Calculations 00:07:43
    6. Floating-point numbers and representational error 00:04:22
    7. Overview of the Case Study: Integer-Based Monetary Calculations with Class DollarAmount 00:03:44
    8. Performing monetary calculations with class DollarAmount 00:15:53
    9. DollarAmount class implementation 00:33:35
    10. do…while iteration statement 00:02:25
    11. Using a switch statement to count letter grades 00:10:45
    12. break statement exiting a for statement. 00:03:49
    13. continue statement terminating an iteration of a for statement 00:04:10
    14. Logical operators 00:08:33
  8. Lesson 6: Functions
    1. Introduction 00:02:46
    2. Function Prototypes 00:06:08
    3. More about function prototypes; Argument coercion 00:06:30
    4. C++ Standard Library Headers 00:08:37
    5. Rolling a six-sided die. 00:04:28
    6. Rolling a Six-Sided Die 60,000,000 Times 00:04:27
    7. Randomizing the Random-Number Generator with srand 00:04:41
    8. Case Study: Game of Chance; Introducing Scoped enums 00:12:05
    9. C++ 11 (and higher) nondeterministic random numbers 00:06:06
    10. Scope Rules 00:13:47
    11. Inline functions 00:02:58
    12. References and Reference Parameters 00:06:49
    13. Default Arguments 00:04:13
    14. Unary Scope Resolution Operator 00:01:54
    15. Function Overloading 00:08:58
    16. Function templates 00:07:11
    17. Recursion 00:07:34