Update cv4/a_train.c
This commit is contained in:
parent
c35da2220c
commit
e1c4306436
@ -7,7 +7,7 @@
|
||||
struct car* add_car(struct car* first, const char* target) {
|
||||
struct car* newcar = (struct car*)calloc(1, sizeof(struct car));
|
||||
if (newcar == NULL) {
|
||||
printf("Ошибка: не удалось выделить память.\n");
|
||||
printf("Chyba: nepodarilo sa alokovať pamäť.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ void print_train(struct car* first) {
|
||||
struct car* current = first;
|
||||
|
||||
if (current == NULL) {
|
||||
printf("Поезд пуст.\n");
|
||||
printf("Vlak je prázdny.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -77,4 +77,3 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
|
||||
return first;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user