This repository contains a collection of C++ programs designed to demonstrate fundamental programming concepts. The examples included cover a variety of basic to intermediate topics, serving for learning key C++ Concepts.
Topics Covered
1:1D, 2D, and 3D Arrays: Examples on how to declare, initialize, and manipulate arrays in one, two, and three dimensions.
2:If Statements: Demonstrates simple conditional statements to make decisions in the code.
3:While Loop: Illustrates the use of while loops for repetitive execution based on conditions.
4:Do-While Loop: Demonstrates do-while loops where the condition is evaluated after the first iteration.
5:For Loop: Shows how to use for loops for controlled iterations.
6:Switch Statement: Examples of switch-case for handling multiple conditions.
7:Break and Continue: Demonstrates the use of break to exit loops and continue to skip the current iteration.
8:Conditional Operator: Shows how to use the ternary operator for concise conditional evaluations.
9:Goto Statement: Example showing how to use goto for jumping to labeled sections in the code.
10:Functions: Demonstrates function declarations, definitions, and calling mechanisms.
11:Return Struct from Function: Illustrates how to return a structure from a function.
12:Structures and Arrow Operator: Defines structures, demonstrates their usage, and shows how to access members using the arrow operator.
13:Classes and Objects: Examples on creating classes, objects, and member functions.
14:Inheritance: Demonstrates single inheritance to show how classes can inherit properties and methods from other class.
15:Polymorphism: Shows function overloading for polymorphism.
16:Pointers: Explains pointer basics including declaration and storing.
17:Linked Lists: Simple implementations of linked lists.
18:Vectors: Covers usage of dynamic arrays using C++ vectors.
19:Lists: Demonstrates accessing elements, adding elements, and using lists for efficient data handling.
Feel free to contribute by adding new concepts or improving the existing ones. Fork the repository and submit a pull request.