To-Do List Manager

Create a persistent to-do list manager from scratch in modern C++ using only the standard library. You store tasks in a std::vector of structs, add and remove items from a menu-driven loop, and save everything to a text file so your list survives between runs. A hands-on lesson in collections and file persistence.

~2 hours
1 steps

Support Free C++ Education

Help us keep this platform free for everyone! Your support enables us to create more high-quality lessons, exercises, and interactive content.

Become a Patron

What You'll Build

A menu-driven console app that lets you add tasks, mark them complete, delete them, list everything, and save and reload the whole list from a plain text file.

Learning Objectives

  • Model a task with a struct holding a description and a completion flag
  • Store and grow a collection of tasks with std::vector
  • Add, remove, and update elements by index within the vector
  • Persist and reload data using std::ofstream and std::ifstream
  • Parse each saved line back into a task with std::getline
  • Drive the program with a menu loop and a switch over user choices

Ready to Start?

Start Project

Sign in to retain your progress

Project Steps

Step 1

To-Do List Manager

Write the whole manager: model a task as a struct, keep the list in a std::vector, drive it from a numbered menu, and save and reload it from a text file.

~120 min

Ready to Start?

Start Project

Sign in to retain your progress