Getting Started
You are about to learn C++. I will show you what it is, where it is used, and how to write your first program.
Lessons
1. Intro
The Goal
2. Where C++ is Used
Games, systems, browsers
3. What You Will Learn
Skills you will build
4. Using the Online Compiler
repovive.com/compiler
5. Your First Program
Complete working example
6. Challenge: Hello World
Your first program
7. Quiz: First Program
Program structure
8. Challenge: Print Your Name
Personalized greeting
9. The #include Line
Adding external code
10. Vocabulary - Header Files
Library definitions
11. Quiz: Understanding #include
Understanding #include
12. The using namespace std Line
Avoiding std:: prefix
13. The main Function
Where execution starts
14. Quiz: Program entry point
Program entry point
15. Vocabulary - Function
Reusable code blocks
16. The cout Statement
Displaying text
17. The endl Keyword
Moving to next line
18. Quiz: Basic Structure
Test your understanding
19. The return Statement
Signaling completion
20. Semicolons
Ending each instruction
21. Quiz: Statement termination
Statement termination
22. Curly Braces
Grouping statements together
23. Quiz: Syntax Elements
Punctuation rules
24. Comments - Single Line
Explaining code briefly
25. Comments - Multi Line
Longer explanations
26. Quiz: Code documentation
Code documentation
27. Why Write Comments
Helping future readers
28. Vocabulary - Syntax
Language structure
29. Vocabulary - Compiler
Code to machine code
30. Common Error - Missing Semicolon
The semicolon rule
31. Common Error - Missing Braces
Unclosed code blocks
32. Common Error - Typos in Keywords
Misspelling reserved words
33. Reading Error Messages
Interpreting compiler feedback
34. Quiz: Common Errors
Identifying mistakes
35. Code Style - Indentation
Making structure visible
36. Code Style - Naming
Choosing clear identifiers
37. Quiz: Valid identifiers
Valid identifiers
38. Problem - Print Multiple Lines
Practice output statements
39. Problem - Print a Box Pattern
Creating text art
40. Problem - Print Pattern
Simple output problem
41. Print Pattern - The Idea
Main approach
42. Print Pattern - Implementation
Complete solution
43. Lessons from Print Pattern
What we learned
44. Problem - Hello Name
Interactive program basics
45. Hello Name - The Idea
Main approach
46. Hello Name - Implementation
Complete solution
47. Lessons from Hello Name
What we learned
48. Section Recap
What we learned