du5
This commit is contained in:
parent
8352be6eb9
commit
2c732eb6be
@ -25,7 +25,6 @@ Tree* readTree() {
|
||||
node->yes = NULL;
|
||||
node->no = NULL;
|
||||
|
||||
line[strcspn(line, "\n")] = 0;
|
||||
|
||||
if (line[0] == '*') {
|
||||
node->isAnswer = 1;
|
||||
@ -113,12 +112,7 @@ int main() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// перевірка пустого рядка після бази
|
||||
if (!EmptyLine()) {
|
||||
printf("Chyba nacitania\n");
|
||||
freeTree(root);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int count = Leaves(root);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user