Skip to content

CppCanvas is a comprehensive C++ repository covering fundamental concepts, data structures, algorithms, pattern problems, and mathematical challenges. It serves as a valuable resource for learning, practicing, and mastering C++ through hands-on coding.

Notifications You must be signed in to change notification settings

nandkumar1000/CppCanvas

Repository files navigation

🎨 CppCanvas – Mastering C++ Through Code

Welcome to CppCanvas, a comprehensive collection of C++ concepts, algorithms, and problem-solving exercises.

🚀 Topics Covered

This repository covers a wide range of C++ concepts, including:

🔹 Fundamentals

  • Variables & Data Types
  • Operators & Expressions
  • Control Flow (Loops & Conditionals)
  • Functions & Recursion

🔹 Data Structures & Algorithms

  • 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)

🔹 Advanced C++ Concepts

  • Structures & Unions (Usage & Applications)
  • Enumerations (enum)
  • Dynamic Memory Allocation (new/delete, malloc/free)
  • Object-Oriented Programming (OOP) (Classes, Inheritance, Polymorphism, Encapsulation)

🔹 Mathematical & Logical Problems

  • Prime Numbers, Factorial, Fibonacci Series
  • GCD, LCM, Number Theory Problems

🔹 Pattern 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

📂 Folder Structure

📦 CppCanvas
 ┣ 📂 Basics
 ┣ 📂 Arrays
 ┣ 📂 Pointers
 ┣ 📂 Stack_Queue
 ┣ 📂 LinkedList
 ┣ 📂 Searching
 ┣ 📂 Sorting
 ┣ 📂 OOP
 ┣ 📂 Structures_Unions
 ┣ 📂 Patterns
 ┣ 📂 Mathematical_Problems
 ┣ 📜 README.md

🛠️ Getting Started

✅ Prerequisites

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

💻 How to Run on Your Local Machine

Follow these steps to set up and run the programs:

1️⃣ Clone the Repository

git clone https://github.com/nandkumar1000/CppCanvas.git

Navigate to the project folder:

cd CppCanvas

2️⃣ Compile and Run C++ Programs

📌 Using GCC (Linux/macOS)
g++ filename.cpp -o output
./output
📌 Using MinGW (Windows)
g++ filename.cpp -o output.exe
output.exe
📌 Using MSVC (Windows with Visual Studio)
cl filename.cpp
filename.exe

3️⃣ Running in an IDE

  • Open the .cpp file in VS Code, Code::Blocks, Dev-C++, or CLion.
  • Select Run or Build & Execute.

🤝 Contributing

Contributions are welcome! You can:

  • Improve existing solutions
  • Add new problems and optimized approaches
  • Refactor code for better readability

About

CppCanvas is a comprehensive C++ repository covering fundamental concepts, data structures, algorithms, pattern problems, and mathematical challenges. It serves as a valuable resource for learning, practicing, and mastering C++ through hands-on coding.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages