This commit is contained in:
Your Name 2025-10-16 03:29:07 +02:00
parent bf23b6fa99
commit e2dd8e7511

View File

@ -20,6 +20,8 @@ void push_stack(struct stack* mystack, float value)
int switch_operators(const char input[])
{
if(strlen(input)==1)
{
switch (input[0])
{
case '+':
@ -34,10 +36,9 @@ 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[])