refresh
This commit is contained in:
parent
c72ffadff8
commit
33be425a21
@ -13,10 +13,43 @@ struct car {
|
||||
int capacity;
|
||||
char value[SIZE];
|
||||
struct car* next;
|
||||
};
|
||||
|
||||
struct station* create_station() {
|
||||
struct station* s = calloc(1, sizeof(struct station));
|
||||
s->tracks = calloc(STATION_SIZE, sizeof(struct car*));
|
||||
s->track_count = STATION_SIZE;
|
||||
return s;
|
||||
}
|
||||
|
||||
int select_track(struct station* s, const char* target) {
|
||||
|
||||
}
|
||||
|
||||
void add_target_capacity(struct station* s, const char* target, int capacity) {
|
||||
|
||||
}
|
||||
|
||||
struct car* find_target(struct station* s, const char* target) {
|
||||
|
||||
}
|
||||
|
||||
int get_total_targets(struct station* s) {
|
||||
|
||||
}
|
||||
|
||||
int get_total_capacity(struct station* s) {
|
||||
|
||||
}
|
||||
|
||||
void print_station(struct station* s) {
|
||||
|
||||
}
|
||||
|
||||
void destroy_station(struct station* s) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user