diff --git a/cv5/a_train.c b/cv5/a_train.c index 0c49087..dc9d48a 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -59,7 +59,7 @@ struct car* clear_train(struct car* first, const char* target) { return 0; } } - struct car* this = first; + //struct car* this = first; /*if(first->next->next == NULL){ int x = strcmp(this->next->value, target); if(x == 0){ @@ -79,6 +79,7 @@ struct car* clear_train(struct car* first, const char* target) { } */ else{ + struct car* this = first; while(this != NULL){ while(this != NULL){ int x =strcmp(this->value, target);