Skip to content

Repository files navigation

⚡ C++ Fundamentals

My hands-on C++ practice repo — from hello world to OOP and STL.


📁 Topics Covered

# 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

🧠 Key Concepts

Pointers — Variables that store memory addresses, giving direct access to memory.

int x = 10;
int* ptr = &x;
cout << *ptr; // 10

OOP — 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());

🚀 How to Run

# 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!

About

My code as I learn C++ from scratch, from basic loops to classes and vectors.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages