Welcome to CppCanvas, a comprehensive collection of C++ concepts, algorithms, and problem-solving exercises.
This repository covers a wide range of C++ concepts, including:
- Variables & Data Types
- Operators & Expressions
- Control Flow (Loops & Conditionals)
- Functions & Recursion
- Arrays (Operations, Searching, Sorting)
- Pointers (Memory Management, Pointer Arithmetic)
- Stack & Queue (Implementation & Applications)
- Linked Lists (Singly, Doubly, Circular)
- Searching Algorithms (Linear Search, Binary Search)
- Sorting Algorithms (Bubble Sort, Quick Sort, Merge Sort, etc.)
- Binary Search Trees (BST) (Insertion, Deletion, Traversal)
- Structures & Unions (Usage & Applications)
- Enumerations (enum)
- Dynamic Memory Allocation (new/delete, malloc/free)
- Object-Oriented Programming (OOP) (Classes, Inheritance, Polymorphism, Encapsulation)
- Prime Numbers, Factorial, Fibonacci Series
- GCD, LCM, Number Theory Problems
Enhance your logic-building skills with pattern-based problems using loops and recursion, including:
- Pyramid Patterns
- Diamond & Triangle Patterns
- Floyd’s Triangle
- Pascal’s Triangle
- Hollow Patterns
📦 CppCanvas
┣ 📂 Basics
┣ 📂 Arrays
┣ 📂 Pointers
┣ 📂 Stack_Queue
┣ 📂 LinkedList
┣ 📂 Searching
┣ 📂 Sorting
┣ 📂 OOP
┣ 📂 Structures_Unions
┣ 📂 Patterns
┣ 📂 Mathematical_Problems
┣ 📜 README.md
Before running the programs, ensure you have the following installed on your system:
-
C++ Compiler
- GCC (For Linux/macOS)
- MinGW (For Windows)
- MSVC (For Visual Studio users)
-
Code Editor (Optional, but Recommended)
- VS Code (with C++ extension)
- Code::Blocks
- Dev-C++
- CLion
Follow these steps to set up and run the programs:
git clone https://github.com/nandkumar1000/CppCanvas.git
Navigate to the project folder:
cd CppCanvas
g++ filename.cpp -o output
./output
g++ filename.cpp -o output.exe
output.exe
cl filename.cpp
filename.exe
- Open the
.cpp
file in VS Code, Code::Blocks, Dev-C++, or CLion. - Select Run or Build & Execute.
Contributions are welcome! You can:
- Improve existing solutions
- Add new problems and optimized approaches
- Refactor code for better readability