This repository is a structured collection of C++ programs focused on mastering core language features, Object-Oriented Programming (OOPs) principles, and fundamental Data Structures, primarily Linked Lists. It serves as a practical, hands-on learning resource for developers.
The code examples are categorized by concept for easy reference and learning.
- Core Concepts: Implementation of Classes, Objects, and access modifiers (
private.cpp). - Constructors: Examples for Default, Parameterized, and Multiple Constructors.
- Inheritance: Demonstrations of Single and Multiple Inheritance.
- Memory Management: Use of object Pointers, the
thispointer, and Dynamic Memory Allocation.
A comprehensive set of implementations covering all major list types and operations:
- Singly Linked List (SLL): Insertion and traversal operations.
- Doubly Linked List (DLL): Creation from arrays, insertion (Head, Tail, at Kth position), and deletion operations.
- Circular Linked List (CLL): Basic structure and operations.
- Clear examples illustrating Pass by Value vs. Pass by Reference for function arguments.
To run the examples in this repository, you only need a standard C++ compiler.
- A C++ Compiler (e.g., g++).
- Clone the repository:
git clone [https://github.com/dipti-2211/Cpp.git](https://github.com/dipti-2211/Cpp.git) cd Cpp - Compile any file (e.g.,
insertll.cpp):g++ insertll.cpp -o run_program
- Run the executable:
./run_program
Feedback, corrections, and new example suggestions are welcome. Please utilize GitHub Issues and Pull Requests for all contributions.
For professional inquiries or further discussion on these topics, please contact the repository owner:
- GitHub: @dipti-2211