A comprehensive, well-structured collection of C++ cheat sheets and study notes .
Warning
Note on Compilation:
The .cpp files in this repository are designed purely as reference notes and code snippets. Some files contain multiple blocks of code or structural documentation that are meant to be read, copied, or tested individually rather than compiled/executed as a single executable script.
Hi there! I'm Muhammad Triarso Pascal, a passionate college student, aspiring software developer, and Full stack developer. This repository serves as my personal learning hub for mastering C++ programming, memory management, and Object-Oriented Programming (OOP) fundamentals.
The table below follows the logical learning progression based on W3Schools C++ Tutorial modules:
| Module | File Name | Topics Covered |
|---|---|---|
| 1. C++ Basics | intro-c++.cpp |
Basic syntax, output (cout), comments |
variabel.cpp |
Variable declaration, initialization, naming rules | |
data-type.cpp |
Data types (int, double, char, string, bool) |
|
operator.cpp |
Arithmetic, assignment, comparison, and logical operators | |
strings.cpp |
String operations, concatenation, functions | |
math.cpp |
C++ Math operations (<cmath> library) |
|
boolean.cpp |
Boolean expressions & conditions | |
| 2. Control Flow | if-else.cpp |
Conditional statements (if, else if, else, short hand) |
switch.cpp |
switch statements, case, break, default |
|
while-loop.cpp |
while loops and do-while loops |
|
for-loop.cpp |
for loops, nested loops |
|
break-continue.cpp |
Control flow modifiers (break and continue) |
|
| 3. Data Structures | array.cpp |
Arrays, multi-dimensional arrays, iteration |
| 4. Memory & References | references.cpp |
Creating references, memory addresses (&) |
pointer.cpp |
Pointers (*), dereferencing, modifying memory values |
|
| 5. Functions | function+parameters.cpp |
Functions, parameters, pass-by-reference, return values |
| 6. Object-Oriented | OOP&object-classes.cpp |
OOP principles, Classes, Objects, attributes, access specifiers |
- Browse through the files following the Study Roadmap order above.
- Open any file to study the code examples, syntax breakdowns, and inline notes.
- Copy relevant code blocks into your local compiler/IDE (e.g., VS Code, CLion) to experiment with them.