Please enable JavaScript to use CodeHS

Data Structures in C++

Lesson 5.2 Sets

Description

In this lesson, students learn how to create and use sets. Sets are useful data structures and are different than other data structures students have seen since they are stored without an index value.


Objective

Students will be able to:

  • Explain how sets are different than other data structures they have encountered and where they can be used.
  • Create, insert, update, and access members of a set
  • Use an operator overload to use a struct with a set