30 lines
603 B
Markdown
30 lines
603 B
Markdown
# Data strucures
|
|
|
|
Possible data structure layout
|
|
|
|
```C
|
|
typedef struct Subject{
|
|
char * name;
|
|
time_t * created;
|
|
time_t * deadline;
|
|
int priority;
|
|
unsigned long long spare;
|
|
} Subject;
|
|
|
|
|
|
typedef struct Event {
|
|
Subject subject;
|
|
time_t plannedStartTime;
|
|
time_t plannedEndTime;
|
|
unsigned long long spare;
|
|
}Event;
|
|
```
|
|
|
|
## 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.
|