Please enable JavaScript to use CodeHS

Data Structures in C++

Going Beyond The Basics

Students explore a few basic C++ principles such as structs, file handling and error handling.

Lessons

2.1 Vector Basics

  • Vector Basics
  • Creating and Accessing Vectors
  • Inserting into a Vector
  • Looping Through a Vector
  • Quiz: Vector Basics
  • +3 more

2.2 Function Default Values

  • Function Default Values
  • Default Values
  • Default Values with a Prototype
  • Example: Splitting a String
  • Quiz: Function Default Values
  • +3 more

2.3 Structs

  • Structs
  • Defining and Accessing Structs
  • Using Structs: Line Length
  • Quiz: Structs
  • Songs
  • +1 more

2.4 File Input/Output

  • File Input/Output
  • Reading In a File
  • Processing a File
  • Writing To a File
  • Quiz: File Input/Output
  • +2 more

2.5 Error Handling

  • Error Handling
  • Validating a Number
  • Validating a Vector Index
  • Throwing Other Values
  • Quiz: Error Handling
  • +2 more

2.6 Project: Karel Internship

  • Part 1 - Karel Internship
  • Part 2 - Karel Internship

2.7 End of Unit Quiz

  • Quiz: Going Beyond The Basics

Courses that include this module