0.15
This commit is contained in:
parent
26fb4270d0
commit
74b4733ee1
@ -17,8 +17,9 @@ struct car* add_car(struct car* first,const char* target) {
|
||||
struct car* temp=first;
|
||||
int length=0;
|
||||
while(temp!=NULL){
|
||||
if(temp->next!=NULL)
|
||||
if(temp->next!=NULL){
|
||||
temp=temp->next;
|
||||
}
|
||||
length++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user