C++ for Beginners: Syntax, Pointers, OOP and Practice Projects
A six-hour, 60-lesson walkthrough of core C++: setting up a compiler, variables, control flow, loops, functions, arrays, references and pointers, dynamic memory, structs, and an introduction to classes, constructors and inheritance. Short topic lessons are interleaved with small practice programs (calculator, number guessing, banking, rock paper scissors, quiz, credit card validator, tic tac toe). Suits complete beginners who want a fast, hands-on first pass through the language.
- 60 lessons
- 6h 1m total
- Development
- English
- Earns YodaCoins
Curated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.
What You'll Learn
- Set up a C++ compiler and editor and compile and run a first program
- Use variables, data types, operators, type conversion, user input and common string and cmath functions
- Control program flow with if/else, switch, ternary and logical operators, and while, do-while, for and nested loops
- Write functions with return values, overloading, scope, and pass-by-value versus pass-by-reference, plus function templates and recursion
- Work with arrays (iteration, searching, sorting, 2D arrays), memory addresses, pointers, nullptr and dynamic memory with new
- Model data with structs, enums, classes, constructors (including overloading), getters/setters and inheritance
- Combine these skills in small projects such as a banking program, rock paper scissors, a quiz game, a Luhn credit card validator and tic tac toe
Prerequisites
- No prior experience needed
- A computer where you can install a C++ compiler (GCC, Clang or MSVC) and a code editor
Course Curriculum
60 lessons · 6h 1m- 01Introduction, Setup and Your First C++ Program14:00
- 02Variables and Basic Data Types10:44
- 03The const Keyword3:24
- 04Namespaces and Why to Avoid using namespace std4:37
- 05Typedef and Type Aliases5:26
- 06Arithmetic Operators5:40
- 07Type Conversion3:47
- 08Accepting User Input with cin5:31
- 09Useful Math Functions (cmath)3:28
- 10Practice: Hypotenuse Calculator2:42
- 11If Statements4:57
- 12Switch Statements5:49
- 13Practice: Console Calculator4:45
- 14The Ternary Operator4:41
- 15Logical Operators5:02
- 16Practice: Temperature Conversion Program5:22
- 17Useful String Methods6:35
- 18While Loops3:06
- 19Do-While Loops3:19
- 20For Loops3:39
- 21Break and Continue1:42
- 22Nested Loops4:17
- 23Random Number Generator3:26
- 24Practice: Random Event Generator3:41
- 25Project: Number Guessing Game4:06
- 26User-Defined Functions7:24
- 27The return Keyword6:09
- 28Overloaded Functions3:07
- 29Variable Scope: Local and Global4:23
- 30Project: Banking Program13:53
- 31Project: Rock Paper Scissors Game13:07
- 32Arrays5:29
- 33The sizeof() Operator4:55
- 34Iterating Over an Array4:07
- 35Range-Based For Each Loop2:57
- 36Passing Arrays to Functions4:31
- 37Searching an Array for an Element7:37
- 38Sorting an Array5:55
- 39The fill() Function4:43
- 40Filling an Array with User Input6:58
- 41Multidimensional Arrays7:41
- 42Project: Quiz Game11:46
- 43Memory Addresses2:49
- 44Pass by Value vs Pass by Reference4:17
- 45Const Parameters3:08
- 46Project: Credit Card Validator (Luhn Algorithm)10:03
- 47Pointers5:16
- 48Null Pointers4:06
- 49Project: Tic Tac Toe Game19:09
- 50Dynamic Memory with new5:49
- 51Recursion6:21
- 52Function Templates5:15
- 53Structs5:01
- 54Passing Structs as Arguments5:29
- 55Enums4:22
- 56Classes and Objects10:54
- 57Constructors8:55
- 58Constructor Overloading4:27
- 59Getters and Setters6:12
- 60Inheritance11:05
About the Instructor
Bro Code
YouTube creator
The lessons in this course were produced by Bro Code and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Bro Code is not affiliated with YodaHut.
Visit the channel on YouTubeMore in the Library: Development

Python y Django desde cero: sistema de facturación completo

Django desde cero: plantillas, modelos, formularios y panel de administración

Django desde cero: del primer proyecto a vistas basadas en clases y APIs con JWT

Cursor AI Editor for Beginners: Setup, Debugging, Refactoring and Documentation

AI-Assisted Coding with GitHub Copilot in VS Code
