Key Concepts

Review core concepts you need to learn to master this subject

User Input

int tip = 0; std::cout << "Enter amount: "; std::cin >> tip;

std::cin, which stands for “character input”, reads user input from the keyboard.

Here, the user can enter a number, press enter, and that number will get stored in tip.

Variables
Lesson 1 of 1

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo