rwjnirnw
This commit is contained in:
parent
6d387b8bb4
commit
990262eea3
@ -79,8 +79,7 @@ int main(void){
|
|||||||
|
|
||||||
|
|
||||||
while( fgets(line, sizeof(line), stdin)){
|
while( fgets(line, sizeof(line), stdin)){
|
||||||
line[strcspn(line, "\n")] = '\0';
|
if(strcmp(line, "\n") == 0){
|
||||||
if(line[0] == '\0'){
|
|
||||||
whitespace = true;
|
whitespace = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -88,14 +87,8 @@ int main(void){
|
|||||||
}
|
}
|
||||||
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 || !exs){
|
if(!tree || !whitespace){
|
||||||
printf("Chybna databaza\n");
|
printf("Chybna databaza\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user