Initializacia

This commit is contained in:
Anton 2024-11-19 14:01:00 +01:00
parent cc577a088c
commit 3f87d9c6ac
4 changed files with 3 additions and 4 deletions

BIN
cv4/main

Binary file not shown.

View File

@ -9,9 +9,8 @@ void test_station(struct station* station) {
char station_name[MAX_INPUT];
int capacity;
printf("Enter station name and capacity (or 'exit' to stop):\n");
while (1) {
printf("Enter station name and capacity (or 'exit' to stop):\n");
printf("Station name: ");
if (!fgets(station_name, MAX_INPUT, stdin)) break;

Binary file not shown.

View File

@ -32,7 +32,7 @@ struct tree* load_tree() {
node->left = load_tree();
node->right = load_tree();
} else if (node->left != NULL || node->right != NULL) {
printf("Expert z bufetu to vie.\n");
printf("Chybna databaza\n");
free(node);
return NULL;
}
@ -106,4 +106,4 @@ int main() {
destroy_tree(root);
return 0;
}
}