Update cv4/main.c
This commit is contained in:
parent
e1c4306436
commit
f09543e303
12
cv4/main.c
12
cv4/main.c
@ -4,16 +4,16 @@
|
||||
|
||||
int main() {
|
||||
struct car* train = NULL;
|
||||
train = add_car(train, "Presov");
|
||||
train = add_car(train, "Prešov");
|
||||
train = add_car(train, "Bratislava");
|
||||
train = add_car(train, "Levoca");
|
||||
train = add_car(train, "Spiska Nova Ves");
|
||||
train = add_car(train, "Levoča");
|
||||
train = add_car(train, "Spišská Nová Ves");
|
||||
|
||||
printf("Состав поезда:\n");
|
||||
printf("Zostava vlaku:\n");
|
||||
print_train(train);
|
||||
|
||||
printf("\nУдаляем вагоны с целевой станцией 'Levoca':\n");
|
||||
train = clear_train(train, "Levoca");
|
||||
printf("\nOdstraňujeme vozne s cieľovou stanicou 'Levoča':\n");
|
||||
train = clear_train(train, "Levoča");
|
||||
print_train(train);
|
||||
|
||||
cancel_train(train);
|
||||
|
Loading…
Reference in New Issue
Block a user