cv7
This commit is contained in:
parent
64aaf27501
commit
c3b0608315
@ -51,7 +51,7 @@ void free_tree(Node *node) {
|
|||||||
void run_system(Node *node) {
|
void run_system(Node *node) {
|
||||||
while (node) {
|
while (node) {
|
||||||
if (node->yes == NULL && node->no == NULL) {
|
if (node->yes == NULL && node->no == NULL) {
|
||||||
printf("Expert z bufetu to vie.\n");
|
|
||||||
printf("* %s\n", node->text);
|
printf("* %s\n", node->text);
|
||||||
printf("Koniec\n");
|
printf("Koniec\n");
|
||||||
break;
|
break;
|
||||||
@ -74,7 +74,7 @@ void run_system(Node *node) {
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
int item_count = 0;
|
int item_count = 0;
|
||||||
printf("Načítajte bázu znalostí:\n");
|
printf("Expert z bufetu to vie.\n");
|
||||||
Node *root = load_tree(&item_count);
|
Node *root = load_tree(&item_count);
|
||||||
|
|
||||||
if (root == NULL) {
|
if (root == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user