diff --git a/cv5/a_train.c b/cv5/a_train.c index 393240e..8a35b2e 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -29,8 +29,9 @@ 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); + this=this->next; + } }