ah..
This commit is contained in:
parent
b16d302b96
commit
f4382afafd
@ -36,7 +36,7 @@ void print_train(struct car* first) {
|
|||||||
|
|
||||||
void cancel_train(struct car* first) {
|
void cancel_train(struct car* first) {
|
||||||
if(first!=NULL){
|
if(first!=NULL){
|
||||||
first->next=first;
|
first=first->next;
|
||||||
free(first->next);
|
free(first->next);
|
||||||
cancel_train(first);
|
cancel_train(first);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user