usaa24/cv4/main.c

18 lines
403 B
C
Raw Normal View History

2024-10-15 12:34:20 +00:00
#include "a_train.h"
#include <stdio.h>
// Testovaci subor pre vlak
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");
print_train(train);
2024-10-15 13:46:47 +00:00
train = clear_train(train,"Levoca");
2024-10-15 12:34:20 +00:00
print_train(train);
cancel_train(train);
return 0;
}