diff --git a/cv4/a_train.c b/cv4/a_train.c index 175ce96..78af766 100755 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -23,7 +23,7 @@ struct car* add_car(struct car* first,const char* target) { void print_train(struct car* first) { struct car* this = first; while(this != NULL){ - printf("%s",this->value); + printf("%s->",this->value); this = this->next; } @@ -55,7 +55,7 @@ struct car* clear_train(struct car* first, const char* target) { if(strcmp(this->value, target) == 0){ //strcpy(this->value,this->next->value); //this->next=NULL; - strucat car* tmp = this->next; + struct car* tmp = this->next; free(this); //free(this->next); return tmp;