diff --git a/cv4/a_train.c b/cv4/a_train.c index f881ba2..021890c 100644 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -23,13 +23,13 @@ struct car* add_car(struct car* first, const char* target) { } void print_train(struct car* first) { - // if(first != NULL){ - // struct car* current = first; - // while(current->next != NULL){ - // printf("%s\n", current->value); - // current = current->next; - // } - // } + if(first != NULL){ + struct car* current = first; + while(current->next != NULL){ + printf("%s\n", current->value); + current = current->next; + } + } } void cancel_train(struct car* first) {