https://github.com/nandkumar1000/cppcanvas
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.
https://github.com/nandkumar1000/cppcanvas
array cpp enumeration function linked-list mathematical-programming oop-s patterns pointers queue recursion searching-algorithms sorting-algorithms stack strings structure union
Last synced: 7 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/nandkumar1000/cppcanvas
- Owner: nandkumar1000
- Created: 2024-04-19T13:06:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-21T09:29:19.000Z (7 months ago)
- Last Synced: 2025-03-21T10:40:14.979Z (7 months ago)
- Topics: array, cpp, enumeration, function, linked-list, mathematical-programming, oop-s, patterns, pointers, queue, recursion, searching-algorithms, sorting-algorithms, stack, strings, structure, union
- Language: C++
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π¨ 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**
```sh
git clone https://github.com/nandkumar1000/CppCanvas.git
```
Navigate to the project folder:
```sh
cd CppCanvas
```#### 2οΈβ£ **Compile and Run C++ Programs**
##### π Using GCC (Linux/macOS)
```sh
g++ filename.cpp -o output
./output
```##### π Using MinGW (Windows)
```sh
g++ filename.cpp -o output.exe
output.exe
```##### π Using MSVC (Windows with Visual Studio)
```sh
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