Please enable JavaScript to use CodeHS

Data Structures in C++

2D Vectors, Stacks, and Queues

Students explore several different sequential data structures and apply these to real-world projects.

Lessons

4.1 2D Vectors

  • 2D Vectors
  • The 2D Vector
  • Creating a 2D Vector
  • Quiz: 2D Vectors
  • Magic Square Tester
  • +1 more

4.2 Project: The Game of Life

  • Creating the Board
  • Adding the Simulator

4.3 Stacks

  • Stacks
  • Basic Stack
  • Stack Example: Reverse a String
  • Quiz: Stacks
  • Browser History
  • +1 more

4.4 Project: RPN Calculator

  • What is an RPN Calculator?
  • Building the Calculator

4.5 Queues

  • Queues
  • Basic Queue
  • Queue Example: Next in Line
  • Quiz: Queues
  • Line Simulator - Single Queue
  • +1 more

4.6 Project: Karaoke Night

  • Project: Karaoke Night

4.7 End of Unit Quiz

  • Quiz: 2D Vectors, Stacks, and Queues

Courses that include this module