From 23ed4c05da81c4b103d15a2d9b4eecc5d00edcab Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Thu, 5 Nov 2020 20:13:06 +0100 Subject: [PATCH] 17% --- cv5/a_train.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cv5/a_train.c b/cv5/a_train.c index 4cb298d..960271d 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -27,6 +27,11 @@ struct car* add_car(struct car* first,const char* target) { } void print_train(struct car* first) { +struct car* this=first; + while(this->next!=NULL){ + this=this->next; + printf(this->value); + } } void cancel_train(struct car* first) {