funguje
This commit is contained in:
parent
76cb8427cb
commit
4d3d0d93fc
@ -100,6 +100,7 @@ int main()
|
|||||||
{
|
{
|
||||||
if(flag==-1 && mystack.values[mystack.size-1]==0)
|
if(flag==-1 && mystack.values[mystack.size-1]==0)
|
||||||
{
|
{
|
||||||
|
printf("division by zero\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
float op_num=pop_stack(&mystack,input);
|
float op_num=pop_stack(&mystack,input);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user