diff --git a/cv4/a_train.c b/cv4/a_train.c index 5590ad3..5005810 100644 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -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); }