Please enable JavaScript to use CodeHS

Data Structures in C++

C++ Basics

Students learn the basic C++ syntax and review fundamental programming concepts such as loops and conditionals.

Lessons

1.1 Input, Output, and Program Structure

  • Input, Output, and Program Structure
  • Hello World
  • Input and Output
  • getline and cin
  • Program Structure
  • +4 more

1.2 Basic Data Types

  • Basic Data Types
  • Strings and Characters
  • Numbers
  • Booleans
  • Quiz: Basic Data Types
  • +3 more

1.3 Conditional Statements

  • Conditional Statements
  • Basic If/Else Statements
  • Comparing Strings
  • Logical Operators
  • Quiz: Conditional Statements
  • +2 more

1.4 Loops

  • Loops
  • For Loops
  • While Loops
  • Searching a String
  • Quiz: Loops
  • +3 more

1.5 Functions in C++

  • Functions in C++
  • Defining and Calling Functions
  • Passing by Reference vs Value
  • Function Prototypes
  • Quiz: Functions in C++
  • +3 more

1.7 End of Unit Quiz

  • Quiz: C++ Basics

Courses that include this module