This is a simple command-line todo application written in C++. It allows you to manage your todo list by adding, deleting, marking tasks as done, listing pending tasks, and viewing statistics. The application also creates and reads task data from files.
- Add new todo items: You can add new tasks to your todo list.
./todoapp add "todo item"- Delete todo items: You can delete specific todo items by their task number.
./todoapp del NUMBER- Mark tasks as done: You can mark tasks as done, moving them to a completed tasks list.
./todoapp done NUMBER- List pending tasks: You can list all pending todo items.
./todoapp ls- Display usage instructions: If you need help or forget the commands, you can display usage instructions.
./todoapp help- View statistics: You can view statistics of pending and completed tasks.
./todoapp report- File Storage: The application creates and reads task data from files (todo.txt and done.txt).
To use this application, you need:
C++ compiler (C++11 or later) Standard Library
Compile the code using a C++ compiler. For example, using g++:
g++ -o todoapp cli_todo_app.cppHere's an example of using the todo application:
./todoapp add "Buy groceries"
./todoapp add "Finish homework"
./todoapp ls
./todoapp done 1
./todoapp report- Gonzalo Gorgojo
- Contact: gongorgojo@gmail.com