This is a simple task manager program written in C++.
The Task Manager allows users to:
- Add users
- Remove users
- Manage tasks for each user
- Mark tasks as completed
- Remove tasks
The program is built using all OOPs and other concepts in C++
To compile the program, run the following command in the terminal:
g++ main.cpp src/User.cpp src/UserManager.cpp src/TaskManager.cpp src/Task.cpp -Iinclude -o program
After compiling the program, run the executable using the following command:
./program
Follow the on-screen instructions to interact with the Task Manager.
Main Menu
1. Add user
2. Remove user
3. Task Manager
4. List Users
5. Exit
Enter your choice (1-5): 1
1 Pratham
2 Ranjive
3 Rajeev
0
Main Menu
1. Add user
2. Remove user
3. Task Manager
4. List Users
5. Exit
Enter your choice (1-5): 4
User ID: 1 User Name: Pratham
User ID: 2 User Name: Ranjive
User ID: 3 User Name: Rajeev
Main Menu
1. Add user
2. Remove user
3. Task Manager
4. List Users
5. Exit
Enter your choice (1-5): 2
Enter user id to remove: 3
Main Menu
1. Add user
2. Remove user
3. Task Manager
4. List Users
5. Exit
Enter your choice (1-5): 3
Enter user id to print: 1
Pratham
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 1
Enter task (type stop to stop adding tasks):
Playing
Studying
Eating
stop
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 2
SL_NO TASK STATUS QUO
1 Playing ✗
2 Studying ✗
3 Eating ✗
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 3
Enter the task index to mark as completed: 1
Task marked as completed.
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 3
Enter the task index to mark as completed: 2
Task marked as completed.
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 2
SL_NO TASK STATUS QUO
1 Playing ✔︎
2 Studying ✔︎
3 Eating ✗
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 5
Exiting Task Manager.
Main Menu
1. Add user
2. Remove user
3. Task Manager
4. List Users
5. Exit
Enter your choice (1-5): 3
Enter user id to print: 2
Ranjive
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 1
Enter task (type stop to stop adding tasks):
Sleeping
Gym
stop
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 2
SL_NO TASK STATUS QUO
1 Sleeping ✗
2 Gym ✗
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 3
Enter the task index to mark as completed: 2
Task marked as completed.
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 3
Enter the task index to mark as completed: 1
Task marked as completed.
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 2
SL_NO TASK STATUS QUO
1 Sleeping ✔︎
2 Gym ✔︎
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 5
Exiting Task Manager.
Main Menu
1. Add user
2. Remove user
3. Task Manager
4. List Users
5. Exit
Enter your choice (1-5): 3
Enter user id to print: 1
Pratham
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 2
SL_NO TASK STATUS QUO
1 Playing ✔︎
2 Studying ✔︎
3 Eating ✗
Task Manager Menu:
1. Add Task
2. List Tasks
3. Mark Task as Completed
4. Remove Task
5. Exit
Enter your choice (1-5): 5
Exiting Task Manager.
Main Menu
1. Add user
2. Remove user
3. Task Manager
4. List Users
5. Exit
Enter your choice (1-5): 5
Exiting the program.