From 7109aca512fb7620e4076192aa4585081baaea14 Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Thu, 19 Nov 2020 19:03:55 +0100 Subject: [PATCH] a --- cv8/program.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cv8/program.c b/cv8/program.c index d7cb4f5..3131051 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -6,20 +6,19 @@ #define SIZE 100 struct tree { - char question[SIZE]; //otazka ab. odpoved char value[SIZE]; - // Odpoveď áno + // Odpove no struct tree* left; - // Odpoveď nie + // Odpove nie struct tree* right; -}; +}tree; -void print_tree(struct node* tree,int offset){ +void print_tree(struct tree* tree,int offset){ for (int i = 0; i < offset; i++){ printf(" "); } - printf("%s",tree->question); + printf("%s",tree->value); if (tree->left){ print_tree(tree->left,offset +3); print_tree(tree->right,offset +3); @@ -61,4 +60,4 @@ while (si >= 0){ } si = si -1;*/ return 0; -} \ No newline at end of file +}