fix
This commit is contained in:
parent
7dbca0e0f6
commit
d4fbad15f2
@ -62,8 +62,8 @@ int main(){
|
|||||||
}
|
}
|
||||||
else if (strlen(input)==1&&strchr("+-*/",input[0])){
|
else if (strlen(input)==1&&strchr("+-*/",input[0])){
|
||||||
if (mystack.size<2){
|
if (mystack.size<2){
|
||||||
printf("Nedostatok hodnot");
|
printf("not enough operands\n");
|
||||||
return 1;}
|
return 0;}
|
||||||
float b=pop(&mystack);
|
float b=pop(&mystack);
|
||||||
float a = pop(&mystack);
|
float a = pop(&mystack);
|
||||||
float result = 0;
|
float result = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user