-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata_struct.cpp
More file actions
32 lines (25 loc) · 1.04 KB
/
data_struct.cpp
File metadata and controls
32 lines (25 loc) · 1.04 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
#include <iostream>
#include <vector>
#include <map>
using namespace std;
int main()
{
map<string, int> myMapPersonal;
map<string, int> myMapClass;
map<string, int> myMapHidden;
vector<myMapPersonal> myPersonal;
vector<myMapClass> myClass;
vector<myMapHidden> myHidden;
string personalTask //giives the title of the task
int personalTime // gives the time for the task is due by
string classTask //giives the title of the task
int classTime // gives the time for the task is due by
string hiddenTask //giives the title of the task
int hiddenTime // gives the time for the task is due by
myMapPersonal.insert(pair<string, int>(personalTask, personalTime));
myMapClass.insert(pair<string, int>(classTask, classTime));
myMapHidden.insert(pair<string, int>(hiddenTask, hiddenTime));
myPersonal.push_back(myMapPersonal);
myClass.push_back(myMapClass);
myHidden.push_back(myMapHidden);
}