a4
This commit is contained in:
parent
ffdbbb5e3b
commit
d5fc3c1ca3
28
a4/a4.h
Normal file
28
a4/a4.h
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user