diff --git a/cv6/main.c b/cv6/main.c new file mode 100644 index 0000000..c0cb40d --- /dev/null +++ b/cv6/main.c @@ -0,0 +1,40 @@ +#include "a_station.h" +#include +#include +#include + +// Печатает всю станцию для отладки +void print_station(struct station* station) { + printf("station>>>\n"); + for (int i = 0; i < station->track_count; i++) { + struct car* current = station->tracks[i]; + while (current) { + printf("%s %d -> ", current->value, current->capacity); + current = current->next; + } + printf("NULL\n"); + } + printf("<<