This commit is contained in:
Radovan Kofira 2020-11-05 20:13:06 +01:00
parent 6bb7453906
commit 23ed4c05da

View File

@ -27,6 +27,11 @@ struct car* add_car(struct car* first,const char* target) {
} }
void print_train(struct car* first) { void print_train(struct car* first) {
struct car* this=first;
while(this->next!=NULL){
this=this->next;
printf(this->value);
}
} }
void cancel_train(struct car* first) { void cancel_train(struct car* first) {