From 755275c1c992bd3e5cdc35c3e689d77462935eaf Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Thu, 5 Nov 2020 20:21:48 +0100 Subject: [PATCH] 17% --- cv5/a_train.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index 393240e..8a35b2e 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -29,8 +29,9 @@ 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); + this=this->next; + } }