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 +}