Initializacia
This commit is contained in:
parent
1fbb3ac286
commit
0c73d2017a
@ -61,7 +61,7 @@ void perform_operation(struct stack* s, char* operator) {
|
||||
result = a * b;
|
||||
} else if (strcmp(operator, "/") == 0) {
|
||||
if (b == 0) {
|
||||
printf("Chyba: delenie nulou\n");
|
||||
printf("division by zero\n");
|
||||
exit(1);
|
||||
}
|
||||
result = a / b;
|
||||
|
Loading…
Reference in New Issue
Block a user