From 33be425a213108ca4e8e35b43464c6a3134d5d12 Mon Sep 17 00:00:00 2001 From: ov075wu Date: Wed, 12 Nov 2025 10:06:41 +0100 Subject: [PATCH] refresh --- du5/a_program.c | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/du5/a_program.c b/du5/a_program.c index ba9b598..70b3424 100644 --- a/du5/a_program.c +++ b/du5/a_program.c @@ -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; -} \ No newline at end of file +