A comprehensive collection of C++ code examples and notes for learning and quick revision of fundamental C++ concepts.
This repository serves as a learning resource and quick reference guide for C++ programming. It contains practical examples and implementations of core C++ concepts, data structures, and algorithms.
- Learning Resource: Structured examples demonstrating C++ fundamentals
- Quick Reference: Code snippets for rapid revision of key concepts
- Practice Ground: Implementation of common patterns and techniques
This repository includes implementations and examples for:
- Basics: Variables, data types, operators, control flow
- Functions: Function declarations, parameters, return types, scope
- Object-Oriented Programming: Classes, inheritance, polymorphism, encapsulation
- Data Structures: Arrays, vectors, linked lists, stacks, queues
- Algorithms: Sorting, searching, recursion
- Memory Management: Pointers, dynamic memory, references
- Standard Library: STL containers and algorithms
- Advanced Concepts: Templates, exception handling, file I/O
- C++ compiler (g++, clang, or MSVC)
- Make (optional, for building)
- Basic understanding of C++ syntax
To compile a C++ file:
g++ -o output_file source_file.cpp
./output_fileOr with more verbose compilation:
g++ -std=c++17 -Wall -Wextra -o output_file source_file.cpp
./output_filecpp-work/
├── README.md # This file
├── basics/ # Fundamental concepts
├── oop/ # Object-oriented programming
├── data-structures/ # DSA implementations
├── algorithms/ # Algorithm implementations
└── advanced/ # Advanced topics
Each section contains well-commented code examples. Feel free to:
- Read through the code to understand concepts
- Compile and run examples to see them in action
- Modify examples to experiment and learn
- Use as reference material for quick revision
This repository is actively maintained as a learning resource. Code examples follow modern C++ standards and best practices.
This repository is open for educational purposes.
Happy Learning! 🎓