add
This commit is contained in:
parent
29fb081da8
commit
dabe009eae
@ -24,7 +24,10 @@ struct car* add_car(struct car* first,const char* target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void print_train(struct car* first) {
|
void print_train(struct car* first) {
|
||||||
struct car* this = first;
|
for(struct car* this == first; this != NULL; this = this->next){
|
||||||
|
printf("%s\n", this->value);
|
||||||
|
}
|
||||||
|
/*struct car* this = first;
|
||||||
if(first == NULL){
|
if(first == NULL){
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
@ -33,7 +36,7 @@ void print_train(struct car* first) {
|
|||||||
printf("%s\n", this->value);
|
printf("%s\n", this->value);
|
||||||
this = this->next;
|
this = this->next;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void cancel_train(struct car* first) {
|
void cancel_train(struct car* first) {
|
||||||
|
Loading…
Reference in New Issue
Block a user