diff --git a/cv5/a_train.c b/cv5/a_train.c index 4f82085..5521526 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -17,10 +17,8 @@ struct car* add_car(struct car* first,const char* target) { struct car* this=first; int length=0; while(this!=NULL){ - if(this->next!=NULL){ this=this->next; this->next = newcar; - } length++; } strcpy(newcar->value, target);