29 lines
473 B
C
29 lines
473 B
C
#ifndef TRAIN_H
|
|
#define TRAIN_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#define SIZE 100
|
|
|
|
|
|
struct car {
|
|
char value[SIZE]; // Názov cieľovej stanice
|
|
struct car* next; // Smerník na ďalší vozeň
|
|
};
|
|
|
|
|
|
struct car* add_car(struct car* first, const char* target);
|
|
|
|
|
|
void print_train(const struct car* first);
|
|
|
|
|
|
void cancel_train(struct car* first);
|
|
|
|
|
|
struct car* clear_train(struct car* first, const char* target);
|
|
|
|
#endif // TRAIN_H
|