Please enable JavaScript to use CodeHS

Introduction to Computer Science in C++

Vectors

In this module, students will learn how to use vectors, a basic data structure designed to hold a list of values of the same type.

Lessons

7.1 Creating and Accessing Vectors

  • Creating and Accessing Vectors
  • Quiz: Creating and Accessing Vectors
  • Creating and Accessing Vectors
  • Updating Vectors
  • Top Songs
  • +1 more

7.2 Adding to and Removing from Vectors

  • Adding to and Removing from Vectors
  • Quiz: Adding to and Removing from Vectors
  • Adding and Removing from a Vector
  • Entering Grades
  • Introductions
  • +1 more

7.3 Traversing Vectors

  • Traversing Vectors
  • Quiz: Traversing Vectors
  • Looping Through a Vector
  • Finding Min and Max
  • Only Even
  • +1 more

Courses that include this module