Skip to content

Latest commit

 

History

History

projects

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

C++ Project Ideas - Learn by Building

"The best way to learn is to build real things."


Overview

Progressive project ideas to apply your C++ skills and build a portfolio.


Beginner Projects (Foundations)

1. Temperature Converter

Skills: I/O, functions, control flow

Convert between Celsius, Fahrenheit, and Kelvin with a menu interface.

Features:

  • Interactive menu
  • Input validation
  • Multiple conversions
  • Loop until exit

Estimation: 2-4 hours


2. Simple Calculator

Skills: Functions, error handling, control flow

Basic calculator supporting +, -, *, / operations.

Features:

  • Arithmetic operations
  • Error handling (divide by zero)
  • Multiple calculations
  • History of operations

Estimation: 3-5 hours


3. Todo List Application

Skills: Classes, STL, file I/O, strings

Console-based todo list manager.

Features:

  • Add/remove/edit todos
  • Mark as complete
  • Save/load from file
  • Search todos
  • Categories

Estimation: 8-12 hours


4. Contact Book

Skills: Classes, STL, file I/O, search algorithms

Manage contacts with names, phones, emails.

Features:

  • Add/remove contacts
  • Search by name/phone
  • Edit contact details
  • Save/load from file
  • Import/export CSV

Estimation: 10-15 hours


Intermediate Projects (OOP & STL)

5. Text Adventure Game

Skills: OOP, inheritance, strings, game design

Classic text-based adventure game.

Features:

  • Room/area system
  • Item management
  • Inventory system
  • Player actions
  • Save/load game
  • Multiple endings

Estimation: 15-20 hours


6. Student Database

Skills: Classes, STL, file I/O, search/sort

Manage student records with CRUD operations.

Features:

  • Add/remove students
  • Edit student information
  • Search by various fields
  • Sort by different criteria
  • Generate reports
  • Export to various formats

Estimation: 12-18 hours


7. Banking System

Skills: Classes, encapsulation, file I/O, validation

Simple banking application with account management.

Features:

  • Create/delete accounts
  • Deposit/withdraw
  • Transfer between accounts
  • Transaction history
  • Account types (savings, checking)
  • Interest calculation

Estimation: 15-20 hours


8. Chat Application

Skills: Networking, threading, STL, protocols

Simple client-server chat application.

Features:

  • Multiple clients
  • Server broadcasts messages
  • Private messaging
  • User registration
  • Message history
  • Disconnect/reconnect

Estimation: 20-25 hours


Advanced Projects (Systems & Performance)

9. HTTP Server

Skills: Networking, concurrency, protocols, parsing

Simple web server serving static files.

Features:

  • Handle HTTP GET/POST
  • Serve static files
  • Multiple connections
  • Logging
  • Configuration
  • Error handling

Estimation: 25-35 hours


10. File System Watcher

Skills: System programming, threading, events

Monitor directories for file changes.

Features:

  • Watch directory for changes
  • Detect create/modify/delete
  • Recursive watching
  • Filter by file type
  • Event callbacks
  • Configuration

Estimation: 20-30 hours


11. Simple Database Engine

Skills: Data structures, file I/O, persistence, parsing

Basic key-value or relational database.

Features:

  • CRUD operations
  • Persistent storage
  • Index (B-tree or hash)
  • Query language (basic)
  • Transactions
  • Backup/restore

Estimation: 40-60 hours


12. Game Engine

Skills: Graphics, math, architecture, performance

Basic 2D game engine.

Features:

  • Game loop
  • Entity system
  • Component management
  • Rendering (SDL or OpenGL)
  • Input handling
  • Audio system
  • Resource management

Estimation: 60-100 hours


Expert Projects (Portfolio Quality)

13. Ray Tracer

Skills: Graphics, math, optimization, performance

CPU-based ray tracer with realistic lighting.

Features:

  • Scene description
  • Spheres, planes, triangles
  • Lighting (point, directional)
  • Shadows
  • Reflections/refractions
  • Anti-aliasing
  • Parallelization

Estimation: 80-120 hours


14. Web Browser Engine

Skills: Parsing, networking, rendering, architecture

Basic HTML/CSS renderer.

Features:

  • HTML parsing
  • CSS styling
  • Layout engine
  • Rendering
  • JavaScript support (basic)
  • Network requests

Estimation: 200+ hours


15. Compiler

Skills: Parsing, code generation, optimization, architecture

Simple language compiler to machine code or bytecode.

Features:

  • Lexer
  • Parser (AST)
  • Type checking
  • Code generation
  • Optimization
  • Standard library

Estimation: 200+ hours


16. Operating System Kernel

Skills: System programming, hardware, architecture

Basic operating system kernel.

Features:

  • Bootloader
  • Memory management
  • Process scheduler
  • File system
  • Device drivers
  • Shell

Estimation: 300+ hours


Domain-Specific Projects

Graphics

  • 3D Model Viewer - Load and display 3D models
  • Image Processor - Filters, transformations
  • Particle System - Physics simulation
  • Terrain Generator - Procedural generation

Networking

  • DNS Resolver - Query DNS servers
  • Port Scanner - Network scanning tool
  • WebSocket Server - Real-time communication
  • FTP Client - File transfer protocol

Data Science

  • CSV Processor - Analyze large datasets
  • Data Visualizer - Plot data graphs
  • Machine Learning - Simple neural network
  • Statistics Tool - Statistical analysis

Game Development

  • Tic-Tac-Toe - AI opponent
  • Chess - Full implementation
  • 2048 - Number puzzle
  • Platformer - 2D side-scroller

Utilities

  • File Compressor - Compression algorithm
  • Text Editor - Basic editor
  • Markdown Processor - Convert to HTML
  • JSON Parser - Parse and generate JSON

Project Progression Path

Stage 1: Basics (Projects 1-4)

Timeline: 1-2 months Focus: Syntax, basic OOP, simple I/O Goal: Comfortable with C++ syntax

Stage 2: Intermediate (Projects 5-8)

Timeline: 2-4 months Focus: OOP, STL, file I/O Goal: Build complete applications

Stage 3: Advanced (Projects 9-12)

Timeline: 4-6 months Focus: Systems, performance, networking Goal: Real-world complexity

Stage 4: Expert (Projects 13-16)

Timeline: 6-12+ months Focus: Portfolio-quality projects Goal: Demonstrable expertise


Project Guidelines

For Each Project

  1. Planning (10% of time)

    • Define requirements
    • Design architecture
    • Plan features
    • Create timeline
  2. Implementation (60% of time)

    • Write code incrementally
    • Test each feature
    • Refactor as needed
    • Document decisions
  3. Testing (20% of time)

    • Unit tests
    • Integration tests
    • Edge cases
    • Error handling
  4. Documentation (10% of time)

    • README with usage
    • Code comments
    • Architecture docs
    • User guide

Portfolio Tips

What Makes a Good Portfolio Project?

  1. Complete - Fully functional, not half-done
  2. Documented - Clear README and comments
  3. Tested - Test coverage demonstrated
  4. Unique - Shows your specific interests
  5. Complex - Demonstrates real skills
  6. Professional - Clean code, good practices

Best Projects for Portfolio

  1. Game - Demonstrates creativity and systems thinking
  2. Network app - Shows practical skills
  3. Graphics - Demonstrates math and optimization
  4. Compiler/interpreter - Shows deep understanding
  5. Database - Shows data structure knowledge

Project Resources

Libraries to Use

Project Area Libraries
Graphics SFML, SDL, OpenGL, Vulkan
Networking Boost.Asio, Boost.Beast
Testing Google Test, Catch2
JSON nlohmann/json
Logging spdlog
Build CMake, Meson
Containers STL (first), then Boost

Tools

  • Version Control: Git
  • IDE: VS Code, CLion, Visual Studio
  • Debugging: GDB, LLDB, Visual Studio Debugger
  • Profiling: Valgrind, perf, Visual Studio Profiler
  • Static Analysis: Clang-tidy, CppCheck

Getting Started

  1. Choose project - Pick something interesting
  2. Plan features - Define MVP (minimum viable product)
  3. Set up - Create repository, CMake setup
  4. Iterate - Build feature by feature
  5. Test - Verify each feature works
  6. Refactor - Improve code quality
  7. Document - Write README and comments
  8. Share - Put on GitHub, write blog post

Project Templates

See subdirectories for:

  • 01_cli_apps/ - Console applications
  • 02_games/ - Game projects
  • 03_networking/ - Network applications
  • 04_graphics/ - Graphics/visualization
  • 05_systems/ - System programming
  • 06_data_structures/ - Algorithm implementations

Ready to build? Pick a project and start coding! 🚀