funguje
This commit is contained in:
parent
bf23b6fa99
commit
e2dd8e7511
@ -19,6 +19,8 @@ void push_stack(struct stack* mystack, float value)
|
||||
}
|
||||
|
||||
int switch_operators(const char input[])
|
||||
{
|
||||
if(strlen(input)==1)
|
||||
{
|
||||
switch (input[0])
|
||||
{
|
||||
@ -34,11 +36,10 @@ int switch_operators(const char input[])
|
||||
case '/':
|
||||
return -1;
|
||||
break;
|
||||
default:
|
||||
return 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
float pop_stack(struct stack* mystack,const char input[])
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user