COMS-171 Introduction to C++

(COMS-171.AB1)
Lessons
Lab
TestPrep
Get A Free Trial

Skills You’ll Get

1

Introduction

  • Who Should Read This Course?
  • Should I Learn C First?
  • Why Should I Learn C++?
  • What If I Don’t Want This Course?
  • Conventions Used in This Course
2

Hour 1: Writing Your First Program

  • Using C++
  • Compiling and Linking the Source Code
  • Creating Your First Program
  • Summary
3

Hour 2: Organizing the Parts of a Program

  • Reasons to Use C++
  • The Parts of a Program
  • Comments
  • Functions
  • Summary
4

Hour 3: Creating Variables and Constants

  • What Is a Variable?
  • Defining a Variable
  • Assigning Values to Variables
  • Using Type Definitions
  • Constants
  • Auto-Typed Variables
  • Summary
5

Hour 4: Using Expressions, Statements, and Operators

  • Statements
  • Expressions
  • Operators
  • If-Else Conditional Statements
  • Logical Operators
  • Tricky Expression Values
  • Summary
6

Hour 5: Calling Functions

  • What Is a Function?
  • Declaring and Defining Functions
  • Using Variables with Functions
  • Function Parameters
  • Returning Values from Functions
  • Default Function Parameters
  • Overloading Functions
  • Auto-Typed Return Values
  • Summary
7

Hour 6: Controlling the Flow of a Program

  • Looping
  • while Loops
  • do-while Loops
  • for Loops
  • switch Statements
  • Summary
8

Hour 7: Storing Information in Arrays and Strings

  • What Is an Array?
  • Writing Past the End of Arrays
  • Initializing Arrays
  • Multidimensional Arrays
  • Character Arrays
  • Copying Strings
  • Reading Arrays with Foreach Loops
  • Summary
9

Hour 8: Creating Basic Classes

  • What Is a Type?
  • Creating New Types
  • Classes and Members
  • Accessing Class Members
  • Private Versus Public Access
  • Implementing Member Functions
  • Creating and Deleting Objects
  • Summary
10

Hour 9: Moving into Advanced Classes

  • const Member Functions
  • Interface Versus Implementation
  • Organizing Class Declarations and Function Definitions
  • Inline Implementation
  • Classes with Other Classes as Member Data
  • Summary
11

Hour 10: Creating Pointers

  • Understanding Pointers and Their Usage
  • The Stack and the Heap
  • Null Pointer Constant
  • Summary
12

Hour 11: Developing Advanced Pointers

  • Creating Objects on the Heap
  • Deleting Objects
  • Accessing Data Members Using Pointers
  • Member Data on the Heap
  • The this Pointer
  • Stray or Dangling Pointers
  • const Pointers
  • const Pointers and const Member Functions
  • Summary
13

Hour 12: Creating References

  • What is a Reference?
  • Creating a Reference
  • Using the Address of Operator on References
  • What Can Be Referenced?
  • Null Pointers and Null References
  • Passing Function Arguments by Reference
  • Understanding Function Headers and Prototypes
  • Returning Multiple Values
  • Summary
14

Hour 13: Developing Advanced References and Pointers

  • Passing by Reference for Efficiency
  • Passing a const Pointer
  • References as an Alternative to Pointers
  • When to Use References and When to Use Pointers
  • References to Objects Not in Scope
  • Returning a Reference to an Object on the Heap
  • Pointer, Pointer, Who Has the Pointer?
  • Summary
A

Appendix A: Binary and Hexadecimal

  • Other Bases
  • Around the Bases
  • Hexadecimal
B

Appendix B: Using the MinGW C++ Compiler on Windows

  • Downloading MinGW-w64
  • Setting the Path Environment Variable
  • Testing Your Installation
C

Appendix C: Project

1

Introduction

  • Sandbox
2

Hour 1: Writing Your First Program

  • Creating Your First Program
3

Hour 2: Organizing the Parts of a Program

  • Understanding Preprocessor Directives
4

Hour 3: Creating Variables and Constants

  • Using Constants
5

Hour 4: Using Expressions, Statements, and Operators

  • Using the If-Else Conditional Statement
  • Using the Compound If Statements
  • Using the if Statement
6

Hour 5: Calling Functions

  • Using Local Variables with Functions
  • Using the Function Parameters
  • Using Function Overloading
7

Hour 6: Controlling the Flow of a Program

  • Understanding the continue Statement
  • Using the while Loop
  • Using the do-while Loop
  • Using the Nested Loops
  • Using the switch Statement
8

Hour 7: Storing Information in Arrays and Strings

  • Initializing Arrays
  • Using an Array
  • Implementing a Character Array
  • Storing Data in an Array
9

Hour 8: Creating Basic Classes

  • Implementing Member Functions
  • Implementing Member Variables and Member Functions
  • Creating Objects
10

Hour 9: Moving into Advanced Classes

  • Understanding the const Member Function
11

Hour 10: Creating Pointers

  • Understanding Pointers
  • Using the new and delete Keywords
12

Hour 11: Developing Advanced Pointers

  • Using the Arrow Operator
  • Understanding const Pointers and const Member Functions
13

Hour 12: Creating References

  • Creating a Reference
14

Hour 13: Developing Advanced References and Pointers

  • Returning by Reference
  • Passing a const Pointer

Related Courses

All Courses
scroll to top