25 lines
341 B
Markdown
25 lines
341 B
Markdown
# Data strucures
|
|
|
|
?
|
|
```C
|
|
typedef struct Subject{
|
|
char * name;
|
|
time_t * created;
|
|
time_t * deadline;
|
|
int priority;
|
|
} Subject;
|
|
|
|
typedef struct Event {
|
|
Subject * subject;
|
|
time_t plannedStartTime;
|
|
time_t plannedEndTime;
|
|
bool done;
|
|
}Event;
|
|
|
|
typedef struct DayPlan{
|
|
int availableTime;
|
|
time_t date;
|
|
Event * plan;
|
|
}DayPlan;
|
|
```
|