Skip to content

Yushikuni/CPP_ToDo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✅ 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 (<iostream>, <fstream>, <string>, <sstream>)
  • 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):

g++ ToDoList.cpp -o todo
./todo

Compile (Windows):

g++ ToDoList.cpp -o todo.exe
todo.exe

Sample Output

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages