diff --git a/cv5/a_train.c b/cv5/a_train.c index 4cb298d..960271d 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -27,6 +27,11 @@ struct car* add_car(struct car* first,const char* target) { } 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) {