Update cv4/main.c

This commit is contained in:
Marat Izmailov 2024-10-17 17:49:42 +00:00
parent e1c4306436
commit f09543e303

View File

@ -4,16 +4,16 @@
int main() { int main() {
struct car* train = NULL; struct car* train = NULL;
train = add_car(train, "Presov"); train = add_car(train, "Prešov");
train = add_car(train, "Bratislava"); train = add_car(train, "Bratislava");
train = add_car(train, "Levoca"); train = add_car(train, "Levoča");
train = add_car(train, "Spiska Nova Ves"); train = add_car(train, "Spišská Nová Ves");
printf("Состав поезда:\n"); printf("Zostava vlaku:\n");
print_train(train); print_train(train);
printf("\nУдаляем вагоны с целевой станцией 'Levoca':\n"); printf("\nOdstraňujeme vozne s cieľovou stanicou 'Levoča':\n");
train = clear_train(train, "Levoca"); train = clear_train(train, "Levoča");
print_train(train); print_train(train);
cancel_train(train); cancel_train(train);