StudyPlanner/doc/docu.md

34 lines
647 B
Markdown
Raw Normal View History

# Data strucures
Possible data structure layout
```C
typedef struct Subject{
char * name;
time_t * created;
time_t * deadline;
} Subject;
typedef struct Event {
Subject *subject;
time_t plannedStartTime;
time_t plannedEndTime;
int priority;
bool done;
}Event;
typedef struct DayPlan{
int availableTime;
time_t date;
Event * plan;
}DayPlan;
```
## Functionality
Day plan can either be crated from user input or read from file to continue previous day.
priority and available time are used to create dayplan which is exported as iCal
after task is completed and priorities are updated for next day and stored in file.