fbwf
This commit is contained in:
parent
6a86061ac2
commit
6d387b8bb4
@ -86,17 +86,20 @@ int main(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//if(!whitespace && tree != NULL){
|
|
||||||
//printf("No whitespace after database\n");
|
|
||||||
// return 0;
|
|
||||||
//}
|
|
||||||
int numOfLeaves = count_leaves(tree);
|
int numOfLeaves = count_leaves(tree);
|
||||||
char answer[SIZE];
|
char answer[SIZE];
|
||||||
|
char existence_line[SIZE];
|
||||||
|
bool exs = false;
|
||||||
|
fgets(existence_line, SIZE, stdin);
|
||||||
|
if(existence_line[0]){
|
||||||
|
bool exs = true;
|
||||||
|
}
|
||||||
printf("Expert z bufetu to vie.\n");
|
printf("Expert z bufetu to vie.\n");
|
||||||
if(!tree || !whitespace){
|
if(!tree || !whitespace || !exs){
|
||||||
printf("Chybna databaza\n");
|
printf("Chybna databaza\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Pozna %d druhov ovocia a zeleniny.\n", numOfLeaves);
|
printf("Pozna %d druhov ovocia a zeleniny.\n", numOfLeaves);
|
||||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.");
|
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.");
|
||||||
while(tree){
|
while(tree){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user