17%
This commit is contained in:
parent
23ed4c05da
commit
faa298fa9e
@ -20,8 +20,8 @@ struct car* add_car(struct car* first,const char* target) {
|
|||||||
}
|
}
|
||||||
while(this->next!=NULL){
|
while(this->next!=NULL){
|
||||||
this=this->next;
|
this=this->next;
|
||||||
this->next = newcar;
|
|
||||||
}
|
}
|
||||||
|
this->next = newcar;
|
||||||
strcpy(newcar->value, target);
|
strcpy(newcar->value, target);
|
||||||
return first;
|
return first;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user