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

View File

@ -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[])
{