| # | Topic | Status |
|---|---|---|
| 01 | Basics | ✅ |
| 02 | Variables & Data Types | ✅ |
| 03 | Input & Output | ✅ |
| 04 | Conditions | ✅ |
| 05 | Loops | ✅ |
| 06 | Functions | ✅ |
| 07 | Arrays | ✅ |
| 08 | Strings | ✅ |
| 09 | Pointers | ✅ |
| 10 | OOP (Classes & Objects) | ✅ |
| 11 | STL | ✅ |
Pointers — Variables that store memory addresses, giving direct access to memory.
int x = 10;
int* ptr = &x;
cout << *ptr; // 10OOP — Organizing code into classes with data and behavior bundled together.
class Car {
public:
string brand;
void drive() { cout << brand << " is driving!"; }
};STL — Ready-to-use data structures and algorithms from the standard library.
vector<int> nums = {3, 1, 4, 1, 5};
sort(nums.begin(), nums.end());# Clone the repo
git clone https://github.com/matheeshainduwara/cpp-learning.git
# Compile any file
g++ 01-basics/hello.cpp -o hello
# Run it
./hello⭐ Star this repo if you find it helpful!