Update cv4/a_train.c
This commit is contained in:
parent
6179afeebe
commit
e0abece4a2
@ -34,9 +34,12 @@ void print_train(struct car* first)
|
||||
|
||||
do
|
||||
{
|
||||
printf("%s -> ", first->value);
|
||||
printf("%s", first->value);
|
||||
first=first->next;
|
||||
}while(first->next!=NULL);
|
||||
if(first){
|
||||
printf("->");
|
||||
}
|
||||
}while(first!=NULL);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user