usaa24/cv4/main.c
2024-10-17 17:47:22 +00:00

23 lines
521 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "a_train.h"
#include <stdio.h>
int main() {
struct car* train = NULL;
train = add_car(train, "Presov");
train = add_car(train, "Bratislava");
train = add_car(train, "Levoca");
train = add_car(train, "Spiska Nova Ves");
printf("Состав поезда:\n");
print_train(train);
printf("\nУдаляем вагоны с целевой станцией 'Levoca':\n");
train = clear_train(train, "Levoca");
print_train(train);
cancel_train(train);
return 0;
}