funguje
This commit is contained in:
parent
ac1a90da79
commit
fb7cbf1ad2
@ -20,8 +20,7 @@ void push_stack(struct stack* mystack, float value)
|
||||
|
||||
int switch_operators(const char input[])
|
||||
{
|
||||
if(strlen(input)==1)
|
||||
{
|
||||
|
||||
switch (input[0])
|
||||
{
|
||||
case '+':
|
||||
@ -37,8 +36,7 @@ int switch_operators(const char input[])
|
||||
return -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
||||
}
|
||||
|
||||
float pop_stack(struct stack* mystack,const char input[])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user