Add cv4/main.c

This commit is contained in:
Yurii Yakovenko 2024-10-16 08:22:27 +00:00
parent 644b40489e
commit 5f39c24402

17
cv4/main.c Normal file
View File

@ -0,0 +1,17 @@
#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);
clear_train(train,"Levoca");
print_train(train);
cancel_train(train);
return 0;
}