-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (26 loc) · 950 Bytes
/
main.cpp
File metadata and controls
32 lines (26 loc) · 950 Bytes
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
//this will be our main file, using the functions we will set up in the other files
#include <iostream>
#include "tracker.h"
#include <vector>
int main() {
std::string name;
welcomeMessage(name); //this will print the welcome message
std::vector<Subject> subjects; //make a dynamic array to hold subjects using a container
loadSubjects(subjects); //this will load the subjects from the file, using the function from tracker.cpp
//idea: ask user for name, store subjects file under name to check if it exists
addSubject(subjects);
addSubject(subjects);
addSubject(subjects);
addTask(subjects);
addTask(subjects);
addTask(subjects);
addTask(subjects);
addTask(subjects);
for (Subject subject : subjects) {
std::cout << subject.name << std::endl;
for (std::string task : subject.tasks) {
std::cout << task << " ";
}
std::cout << std::endl;
}
}