Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Learning Repository

A comprehensive collection of C++ code examples and notes for learning and quick revision of fundamental C++ concepts.

📚 Overview

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.

🎯 Purpose

  • 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

📖 Topics Covered

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

🚀 Getting Started

Prerequisites

  • C++ compiler (g++, clang, or MSVC)
  • Make (optional, for building)
  • Basic understanding of C++ syntax

Compiling and Running

To compile a C++ file:

g++ -o output_file source_file.cpp
./output_file

Or with more verbose compilation:

g++ -std=c++17 -Wall -Wextra -o output_file source_file.cpp
./output_file

📁 Repository Structure

cpp-work/
├── README.md          # This file
├── basics/            # Fundamental concepts
├── oop/               # Object-oriented programming
├── data-structures/   # DSA implementations
├── algorithms/        # Algorithm implementations
└── advanced/          # Advanced topics

💡 Usage

Each section contains well-commented code examples. Feel free to:

  1. Read through the code to understand concepts
  2. Compile and run examples to see them in action
  3. Modify examples to experiment and learn
  4. Use as reference material for quick revision

🔗 Resources

✏️ Notes

This repository is actively maintained as a learning resource. Code examples follow modern C++ standards and best practices.

📝 License

This repository is open for educational purposes.


Happy Learning! 🎓

About

learning basic c++, can be used as notes for quick revision

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages