Fixed the ordering
This commit is contained in:
parent
0cc2266abf
commit
1447ed6968
@ -101,7 +101,7 @@ int main(void){
|
|||||||
answer[strcspn(answer, "\n")] = '\0';
|
answer[strcspn(answer, "\n")] = '\0';
|
||||||
|
|
||||||
if(strcmp(answer, "n") == 0){
|
if(strcmp(answer, "n") == 0){
|
||||||
tree = tree->left;
|
tree = tree->right;
|
||||||
if(tree->value[0] == '*'){
|
if(tree->value[0] == '*'){
|
||||||
printf("\n%s\n", tree->value);
|
printf("\n%s\n", tree->value);
|
||||||
printf("Koniec\n");
|
printf("Koniec\n");
|
||||||
@ -112,7 +112,7 @@ int main(void){
|
|||||||
|
|
||||||
}
|
}
|
||||||
else if(strcmp(answer, "a") == 0){
|
else if(strcmp(answer, "a") == 0){
|
||||||
tree = tree->right;
|
tree = tree->left;
|
||||||
if(tree->value[0] == '*'){
|
if(tree->value[0] == '*'){
|
||||||
printf("\n%s\n", tree->value);
|
printf("\n%s\n", tree->value);
|
||||||
printf("Koniec\n");
|
printf("Koniec\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user