From ef92d74c57fd0810c10c639fc637c30a5d8461f3 Mon Sep 17 00:00:00 2001 From: Yuliia Pikiner Date: Fri, 6 Nov 2020 20:29:44 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20'a?= =?UTF-8?q?=5Ftrain.h'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- a_train.h | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 a_train.h diff --git a/a_train.h b/a_train.h deleted file mode 100644 index ed0863f..0000000 --- a/a_train.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef TRAIN_H -#define TRAIN_H -#define SIZE 100 - -/** - * Jeden vozen vlaku - */ -struct car { - /** - * Nazov cielovej stanice - */ - char value[SIZE]; - /** - * Smenik na dalsi vozen - */ - struct car* next; -}; - -/** - * Prida vozen na koniec vlaku. - * - * @arg nazov cielovej stanice, ktory sa ma priradit novemu voznu. - * @return smernik na zaciatok vlaku. - */ -struct car* add_car(struct car* first,const char* target); - - -/** - * Vypise vsetky vozne vo vlaku - * - * @arg smernik na prvy vozen - */ -void print_train(struct car* first); - -/** - * Zrusenie vsetkych voznov vo vlaku. - * @arg smernik na prvy vozen - */ -void cancel_train(struct car* first); - -/** - * Vyradenie vsetkych voznov, ktorych cielova stanica je target - * - * @arg smernik na prvy vozen - * @arg cielova stanica, ktora sa ma vyradit z vlaku. - * @return smernik na novy prvy vozen - * - */ -struct car* clear_train(struct car* first,const char* target); - -#endif // TRAIN_H