https://github.com/yushikuni/cpp_todo
Simple console-based ToDo list app in C++. Tasks are stored in a local text file. Great for learning file I/O and logic structuring.
https://github.com/yushikuni/cpp_todo
cli cpp cpp17 portfolio-website unfinished-project
Last synced: 27 days ago
JSON representation
Simple console-based ToDo list app in C++. Tasks are stored in a local text file. Great for learning file I/O and logic structuring.
- Host: GitHub
- URL: https://github.com/yushikuni/cpp_todo
- Owner: Yushikuni
- License: mit
- Created: 2024-01-08T17:55:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-02T18:38:09.000Z (8 months ago)
- Last Synced: 2025-11-02T20:27:39.930Z (8 months ago)
- Topics: cli, cpp, cpp17, portfolio-website, unfinished-project
- Language: C++
- Homepage:
- Size: 20.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# โ
Console ToDo List (C++)
A simple task manager built in C++ that runs in the console and stores tasks in a text file.
Allows users to add, list, and mark tasks as complete. Great practice for file I/O, CLI interaction and logic structuring in C++.
---
## ๐ ๏ธ Technologies
- C++17
- Standard Library only (``, ``, ``, ``)
- Console UI
- File-based persistence (`example.txt`)
---
## ๐ Features
- โ Add a new task with name and description
- ๐ List all tasks stored in file
- โ๏ธ Mark a task as completed
- ๐งพ Each task has: ID, completed flag, title, and description
- ๐พ File I/O via `fstream` โ tasks stored in `example.txt`
---
## โถ๏ธ How to Run
### Compile (Linux/macOS):
```bash
g++ ToDoList.cpp -o todo
./todo
```
### Compile (Windows):
```bash
g++ ToDoList.cpp -o todo.exe
todo.exe
```
### Sample Output
```bash
Option Menu:
ANY OTHER KEYS WILL IMMEDIATELY TERMINATE THE PROGRAM...
0 - For terminate program
1 - For Add New Task
2 - For Print All Tasks
3 - For Update Tasks
You Choose:
```
## ๐ File Structure
- ToDoList.cpp
- example.txt โ generated automatically
- README.md
## ๐งน Possible Improvements
- Refactor into multiple source files (TaskManager.cpp, main.cpp)
- Add better parsing (support for multi-word input)
- Store tasks in CSV or JSON format
- Improve update logic (rewrite file instead of line edits)
- Add timestamps and task categories
๐ฉโ๐ป Author
Made by Kvฤtuลกe (Yushikuni) โ practicing real-world C++ logic and data persistence.