C++ 11 (Part 3 of 4): Data Structures and Pointers
Interactive

C++ 11 (Part 3 of 4): Data Structures and Pointers

Biz Library
Updated Jan 21, 2020

The key strengths of C++ are its object-oriented features and its basis on classes and structures. Discover how to define data types, reference types, and value types and also how to implement object members inheritance, enumerations, unions, and typedefs. Learn how pointers work, including dereferencing, passing pointers, and pointer arithmetic to access data in objects. Finally, compare and contrast pointers with smart pointers for memory cleanup.

Lesson 1:

  • Classes and Structs
  • Demo: Classes and Structs
  • Demo: Constructors
  • Demo: Inheritance and Scope
  • Demo: Complicated Example

Lesson 2:

  • Enums
  • Demo: Defining an Enum
  • Demo: Using Enums

Lesson 3:

  • Unions
  • Demo: Union
  • Demo: Discriminated Union

Lesson 4:

  • Demo: Simple Typedef
  • Demo: Complex Typedef

Lesson 5:

  • Demo: Intro to Pointers
  • Demo: Swapping Values

Lesson 6:

  • Demo: Address-of and Dereference
  • Demo: Arithmetic and Array Indexing

Lesson 7:

  • Demo: Using Const
  • Demo: Heap Objects and Member Operator

Lesson 8:

  • Demo: String Literals
  • Demo: Voids and Nulls

Lesson 9:

  • Demo: References vs. Pointers
  • Demo: References
  • Demo: Risky Referencing

Lesson 10:

  • Smart Pointers
  • Demo: Raw Pointers
  • Demo: Unique and Shared Pointers
  • Demo: Weak Pointers