This commit is contained in:
Maksym Kovalchuk 2026-05-10 18:39:59 +00:00
parent ffdbbb5e3b
commit d5fc3c1ca3
2 changed files with 29 additions and 0 deletions

1
a4/a4.c Normal file
View File

@ -0,0 +1 @@
#include<stdio.h>

28
a4/a4.h Normal file
View File

@ -0,0 +1,28 @@
#ifndef A4_H
#define A4_H
#define SIZE 256
typedef struct Tree {
char text[SIZE];
int isAnswer;
struct Tree *yes;
struct Tree *no;
} Tree;
// citanie stromu
Tree* readTree();
// kontrola prazdneho riadku
int EmptyLine();
// pocet listov
int Leaves(Tree *node);
// uvolnenie pamate
void freeTree(Tree *node);
// hra
void start(Tree *node);
#endif