lal
This commit is contained in:
parent
a8d5d8f6b3
commit
5e7e41928a
@ -40,7 +40,7 @@ int main(){
|
||||
char *endptr;
|
||||
float num = strtof(x, &endptr);
|
||||
|
||||
if (*endptr == "\0") { // je cislo
|
||||
if (*endptr == '\0') { // je cislo
|
||||
if(mystack.size >= SIZE) {
|
||||
fprintf(stderr," plne \n");
|
||||
return 1;
|
||||
@ -61,7 +61,7 @@ int main(){
|
||||
case '*': result = a * b;break;
|
||||
case '/':
|
||||
if(b == 0){
|
||||
fprintf(strderr, "nule pr ideleni \n");
|
||||
fprintf(stderr, "nule pr ideleni \n");
|
||||
return 1;
|
||||
}
|
||||
result = a / b;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user