
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 7-lesson course built from Programming with Mosh's 1h 23m of YouTube video. 1 day at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by Programming with Mosh on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Understand what C++ is used for, why it remains relevant, and the two key areas (language syntax and standard library) needed to master it.
Write, explain, and run a minimal C++ program that prints 'hello world' using iostream, the main function, std::cout, and return 0.
Declare and initialize variables of type int and double, understand the importance of initialization to avoid garbage values, and declare multiple variables cleanly.
Distinguish statically typed C++ from dynamically typed languages; list built-in types (int, short, long, long long, float, double, long double, bool, char) with typical sizes and ranges.
Use brace initialization to prevent narrowing conversions and guarantee zero-initialization; leverage auto with suffixes (f, L, ull) for concise, type-safe declarations.
Seed std::srand with std::time(nullptr) for varied sequences; call std::rand and scale with modulus to get random integers in a desired range; note the C++11 <random> alternative.