A structured, from-scratch walkthrough of core C++ fundamentals — written while learning through Striver's TUF (Take U Forward) C++ course, with my own notes, dry runs, and quiz breakdowns added along the way.
Every file compiles cleanly (g++ -Wall -Wextra, C++17) and is organized by topic in the order it was learned.
| # | Topic | Folder |
|---|---|---|
| 1 | Basics — data types, variable declaration, integer limits | 1. basics/ |
| 2 | Input/Output — cin, cout, dynamic vs. static input |
2. input-output/ |
| 3 | Conditionals — if/else, nested if-else, switch |
3. conditionals/ |
| 4 | Loops — for, while |
4. loops/ |
| 5 | Arrays — declaration, traversal, indexing | 5. Arrays/ |
| 6 | Strings — cin vs. getline(), traversal, string ops |
6. strings/ |
| 7 | Functions — parameters, return types, pass-by-value vs. pass-by-reference, arrays in functions | 7. functions/ |
notes.md is my running learning journal for every topic above — problem statements, code, dry runs, common mistakes I made (and how I caught them), and quiz-style self-checks. It's written as a study log, not polished documentation, so it's verbose by design.
Each .cpp file is standalone. Compile and run any file with:
g++ -std=c++17 "path/to/file.cpp" -o output
./output- Vectors (
std::vector) - Pointers
- 2D arrays / matrices
- Structures
- Recursion
Personal learning repo — feedback and corrections welcome via issues.