Update cv7/program.c
This commit is contained in:
parent
155f61e5e8
commit
39fde4afb0
@ -29,7 +29,6 @@ struct tree* read_tree()
|
||||
|
||||
|
||||
|
||||
|
||||
node->left=NULL;
|
||||
node->right=NULL;
|
||||
|
||||
@ -67,8 +66,8 @@ int main(void)
|
||||
|
||||
tr=read_tree();
|
||||
|
||||
printf("\nExpert z bufetu to vie.");
|
||||
printf("\nPozna 2 druhov ovocia a zeleniny.");
|
||||
printf("Expert z bufetu to vie.\n");
|
||||
printf("Pozna 2 druhov ovocia a zeleniny.\n");
|
||||
|
||||
struct tree *p=tr;
|
||||
do
|
||||
@ -76,7 +75,7 @@ int main(void)
|
||||
printf("%s",p->value);
|
||||
if(p->value[0]=='*')
|
||||
break;
|
||||
printf("\nOdpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.");
|
||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||
char t=fgetc(stdin);
|
||||
if(t=='a')
|
||||
p=p->left;
|
||||
|
Loading…
Reference in New Issue
Block a user