17%
This commit is contained in:
parent
d94925e6ed
commit
2ea871a21c
@ -15,11 +15,10 @@
|
|||||||
struct car* add_car(struct car* first,const char* target) {
|
struct car* add_car(struct car* first,const char* target) {
|
||||||
struct car* newcar = calloc(1,sizeof(struct car));
|
struct car* newcar = calloc(1,sizeof(struct car));
|
||||||
struct car* this=first;
|
struct car* this=first;
|
||||||
int length=0;
|
|
||||||
if(this==NULL){
|
if(this==NULL){
|
||||||
return newcar;
|
return newcar;
|
||||||
}
|
}
|
||||||
else(this->next!=NULL){
|
while(this->next!=NULL){
|
||||||
this=this->next;
|
this=this->next;
|
||||||
this->next = newcar;
|
this->next = newcar;
|
||||||
}
|
}
|
||||||
|
BIN
cv5/train.exe
BIN
cv5/train.exe
Binary file not shown.
Loading…
Reference in New Issue
Block a user