diff --git a/cv5/a_train.c b/cv5/a_train.c index 33ff985..2cfff4a 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -15,11 +15,10 @@ struct car* add_car(struct car* first,const char* target) { struct car* newcar = calloc(1,sizeof(struct car)); struct car* this=first; - int length=0; if(this==NULL){ return newcar; } - else(this->next!=NULL){ + while(this->next!=NULL){ this=this->next; this->next = newcar; } diff --git a/cv5/train.exe b/cv5/train.exe deleted file mode 100644 index e3e9303..0000000 Binary files a/cv5/train.exe and /dev/null differ