Initializacia
This commit is contained in:
parent
824447cc6e
commit
d832de7862
@ -67,7 +67,7 @@ void perform_operation(struct stack* s, char* operator) {
|
||||
result = a / b;
|
||||
} else {
|
||||
printf("Chyba: neplatna operacia\n");
|
||||
exit(1);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
push_stack(s, result);
|
||||
@ -92,7 +92,7 @@ int main() {
|
||||
|
||||
else {
|
||||
printf("bad input\n");
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
print_stack(&mystack);
|
||||
|
Loading…
Reference in New Issue
Block a user