-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patharohaMain.cpp
More file actions
68 lines (64 loc) · 1.96 KB
/
Copy patharohaMain.cpp
File metadata and controls
68 lines (64 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include <iostream>
#include "suyans.h"
#include "task.h"
#include "calendar.h"
using namespace std;
void Dashboard() {
int choice;
do {
checkReminders();
cout << "\n";
cout << "========================================\n";
cout << " TASK MANAGER SYSTEM\n";
cout << "========================================\n";
cout << "1. Add Task\n";
cout << "2. Display Tasks\n";
cout << "3. Edit Task\n";
cout << "4. Remove Task\n";
cout << "5. Mark Complete\n";
cout << "6. Show Calendar & Contribution Heatmap\n";
cout << "7. Show History\n";
cout << "8. Gamification & Quiz\n";
cout << "9. Exit\n";
cout << "========================================\n";
cout << "Enter Choice: ";
if (!(cin >> choice)) {
cin.clear();
cin.ignore(10000, '\n');
cout << "Invalid Option Input. Try again.\n";
continue;
}
switch (choice) {
case 1:
addTask();
break;
case 2:
displayTasks();
break;
case 3:
editTask();
break;
case 4:
removeTask();
break;
case 5:
markCompleted();
break;
case 6:
displayCalendar();
break;
case 7:
displayHistory();
break;
case 8:
displayGamification();
break;
case 9:
cout << "\nThank You For Using Task Manager!\n";
break;
default:
cout << "\n[!] Invalid Selection Code. Please try choosing a choice from (1-9).\n";
break;
}
} while (choice != 9);
}