Skip to content

About

A structured C++ roadmap covering fundamentals, OOP, and data structures with tasks, projects, and problem solving.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

105 Commits

Folders and files

Repository files navigation

C++ Roadmap

C++ Roadmap banner

C++ Level Status License

A structured learning system, not just a collection of files. I wrote this the way I wish someone had taught me C++ in first year: one idea at a time, with the mistakes I actually made, and enough practice that the idea sticks.

Who is this for?

You, if you are a first or second year student who can write a for loop but still feels lost when someone says "just use a pointer" or "make it a class". No prior C++ needed. If you already know the basics, skip to Level 2 or 3.

How to use it

Each level follows the same rhythm, and it works best if you do not skip steps:

flowchart LR
    A[Notes] --> B[Tasks]
    B --> C[Projects]
    C --> D[Problems]
    D --> E[Exam]
Loading
  1. Read the notes - every note starts with a real example, walks through the code line by line, and ends with the mistakes people usually make.
  2. Do the task - small, right after the note, while it is still fresh.
  3. Build the project - one per level, bigger than a task, smaller than a nightmare.
  4. Solve the problems - easy first, then medium, then hard in Level 3.
  5. Take the exam - at the end of each level. Solutions live in a separate file, so no peeking by accident.

Learning path

flowchart LR
    A[Basics] --> B[OOP]
    B --> C[Data Structures]
Loading
Level Module What you will learn Start here
1 Basics Variables, conditions, loops, arrays, functions, I/O, strings, pointers, references, casting, enums, structs, plus auto, scope and lifetime, and file I/O 01-Basics/notes/01-variables.md
2 Object-Oriented Programming Classes, encapsulation, inheritance, polymorphism, abstraction, constructors, destructors, static, operator overloading, plus smart pointers and RAII, move semantics, and templates 02-OOP/notes/01-classes.md
3 Data Structures Arrays, linked lists, stack, queue, deque, plus the STL, trees, hash tables, and complexity in practice 03-Data-Structures/notes/01-arrays.md

What is inside

cpp-roadmap/
├── 01-Basics/                  13 notes, 13 tasks, 4 projects, exam + solutions
│   ├── notes/                  01-variables ... 13-file-io
│   ├── tasks/                  one task per note
│   ├── projects/               calculator, guessing-game, login-system, binary-to-decimal
│   ├── problems/               easy.md, medium.md
│   ├── examples/               runnable version of every note's code
│   ├── exam.md
│   └── exam-solutions.md
├── 02-OOP/                     12 notes, 12 tasks, 2 projects, exam + solutions
│   ├── notes/                  01-classes ... 12-templates-basics
│   ├── tasks/                  one task per note
│   ├── projects/               student-system, bank-system
│   ├── problems/               easy.md, medium.md
│   ├── examples/               runnable version of every note's code
│   ├── exam.md
│   └── exam-solutions.md
├── 03-Data-Structures/         9 notes, 8 tasks, 4 projects, exam + solutions
│   ├── notes/                  01-arrays ... 09-complexity-in-practice
│   ├── tasks/                  one task per note
│   ├── projects/               array-toolkit, linked-list-manager, stack-simulator, queue-system
│   ├── problems/               easy.md, medium.md, hard.md
│   ├── exam.md
│   └── exam-solutions.md
├── assets/                     banner, diagrams (SVG) and animated GIFs
│   ├── banner.png
│   ├── basics/                 variables-memory, pointer, loop, references-vs-pointers, file-io
│   ├── oop/                    classes, inheritance, polymorphism, smart-pointers, raii
│   └── ds/                     array, linked-list, stack, queue, stl-map, tree, hash-table
├── COMMIT_PLAN.md              the order these changes go up in, one commit per finished piece
├── LICENSE
└── README.md

Visuals

Every hard idea has a picture. The notes use Mermaid diagrams inline, and assets/ holds the bigger stuff: SVGs that explain memory layout, inheritance, and hash tables, and short looping GIFs that show movement step by step - a pointer walking through memory, a stack pushing and popping, a node being inserted at the head of a linked list. See assets/README.md for the full list.

Build and run the code

Everything is plain C++20, no libraries to install, no build system to fight. You need a compiler that speaks C++20, for example g++ 11 or newer.

# one file
g++ -std=c++20 -Wall -Wextra -o program 01-Basics/examples/01-variables.cpp
./program

# a project with several files (example: student-system)
g++ -std=c++20 -Wall -Wextra -o student-system \
  02-OOP/projects/student-system/main.cpp \
  02-OOP/projects/student-system/Student.cpp
./student-system

Every code example in this repo was compiled exactly like that, with -Wall -Wextra, and runs clean with zero warnings.

Two rules I kept while writing this

  • No using namespace std;. It feels convenient in a ten-line program and turns into a mess in a real one. The notes use std:: everywhere and explain why in the first note.
  • No hidden magic. No CI, no scripts you have to trust, no setup. Clone it, open a note, compile the code. That is the whole setup, on purpose - this repo is for students, not for a build pipeline.

Rules for you

  • Do not skip steps. The order is the point.
  • Do not copy without understanding. If you cannot explain a line, read the note again.
  • Practice daily, even twenty minutes. C++ rewards steady hands, not weekend heroics.
  • Focus on logic first. Syntax is the easy part once the idea is clear.

Contributing

Found a mistake, a confusing sentence, or a better example? Open an issue and say which note and which line. If you want to add a note, follow the existing pattern: real-life hook, explanation, line-by-line walkthrough with expected output, a diagram, common mistakes, practice, and a task. Keep the voice human - write like you are explaining it to a classmate, not like a textbook.

About

Created by Mohamed Kotb, a third-year computer science student. This repo started in first year as a few rough notes and grew into the roadmap I wished I had back then. It is designed as a structured path for serious learners.

License

MIT. See LICENSE.

About

A structured C++ roadmap covering fundamentals, OOP, and data structures with tasks, projects, and problem solving.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages