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