Welcome to my C++ Programming repository! This repo contains the code I wrote while learning C++ for the first time. It serves as a personal reference and may help others who are just starting out as well.
- Basic Syntax: Variables, Data Types, Operators, and Control Flow (if, for, while)
- Functions: Declaration, Definition, and Recursion
- Pointers & References: Memory addresses and pointer arithmetic
- Object-Oriented Programming (OOP): Classes, Objects, Inheritance, Polymorphism, Encapsulation
- File Input/Output (I/O): Reading from and writing to files using fstream
- Standard Template Library (STL): Vectors, Maps, Sets, Pairs, and Algorithms
- Basic Algorithms: Searching, Sorting, etc.
To run any of the C++ programs in this repo:
-
Clone the repo:
git clone https://github.com/schak04/cpp-learning-journey.git
-
Navigate into the project folder:
cd cpp-learning-journey
-
Compile and run a program (example for
hello.cpp
):g++ hello.cpp -o hello ./hello
Each .cpp
file is named based on the concept it demonstrates.
This repository is a work in progress. I will continue to add more code and examples as I explore new C++ concepts, projects, and challenges. Stay tuned for more updates!