Please enable JavaScript to use CodeHS

Data Structures in C++

Lesson 1.1 Input, Output, and Program Structure

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