Please enable JavaScript to use CodeHS

Data Structures in C++

Description

In this lesson, students learn basic input and output in C++ and will make a Haiku. Students will be exposed to the concept of variables, but more detail will follow in the next lesson.

Objective

Students will be able to:

  • Print to the console
  • Read in from the console
  • Explain the difference between the getline and cin commands
Description

In this lesson, students will learn the different variable types available in C++ and will learn the syntax for declaring and initiating these variables.

Objective

Students will be able to explain different variable types in order to choose the best option for various programming situations.

Description

In this lesson, students will learn different C++ syntax used to compare two variables, use logical operators such as and, or, and not, and apply these to conditional statements.

Objective

Students will be able to use logical and comparison operators and apply them within the context of conditional statements (if/else statements).

Description

In this lesson, students will learn to construct and apply for loops and while loops in C++. They will then apply these concepts to real-world problems.

Objective

Students will be able to use and construct for loops and while loops and explain when to use each type.

Description

In this lesson, students will learn to create functions in C++ as well as study some of the intricacies of C++ functions such as pass-by-reference and function prototypes.

Objective

Students will be able to create functions and apply different C++ standards in order to streamline their programs.

Description

In this lesson, students complete a summative assessment of the unit’s learning objectives.

Objective

Students will be able to:

  • Prove their knowledge of C++ basic concepts through a multiple choice quiz