Please enable JavaScript to use CodeHS

Introduction to Computer Science in C++

Programming Basics

In this module, students will learn basic C++ programming syntax, including input/output, variable types, and math functions.

Lessons

1.1 Welcome to C++

  • Welcome
  • Welcome

1.2 Program Structure and Basic Output

  • Program Structure and Basic Output
  • Quiz: Program Structure and Basic Output
  • Hello World
  • Using a Library
  • Guided Activity: Your First C++ Program
  • +2 more

1.3 Variables and Data Types

  • Variables and Data Types
  • Quiz: Variables and Data Types
  • Variables
  • Printing Variables
  • Swapping Values
  • +2 more

1.4 User Input

  • User Input
  • Quiz: User Input
  • Reading in Strings
  • Reading in Numbers
  • The Naturalization Test
  • +1 more

1.5 Math Functions

  • Math Functions
  • Quiz: Math Functions
  • Basic Math example
  • Casting Values
  • Fix the Math
  • +1 more

Courses that include this module