Learn C++: Introduction
Start programming in C++: write and compile your first programs, meet the four kinds of errors, store data in variables, control the flow of a program with conditionals, logic and random numbers, then put it all together in five small projects.
- Beginner level
- 4 modules
- 25 lessons
- 91 tasks and questions
Syllabus
01Hello, C++Write your first C++ program, print text with std::cout, add comments, learn how a compiler turns source code into a program you can run, and tell compile-time, link-time, run-time and logic errors apart.6 lessons
02Variables and TypesStore values in typed variables, use int, double, char, bool and std::string, do arithmetic, convert between types, and read input with std::cin.6 lessons
03Conditionals and LogicMake your programs choose. Compare values, branch with if, else if and else, pick between cases with switch, combine conditions with logical operators, and draw random numbers with the standard library.7 lessons
04Practice ProjectsCombine output, variables, arithmetic, input, conditionals and random numbers in five small programs: a recipe scaler, a ladder check, a ticket price calculator, a plant care advisor and a dice encounter.6 lessons