This commit is contained in:
Your Name 2025-10-16 04:03:36 +02:00
parent 3916fb6acd
commit 53df65f880

View File

@ -89,6 +89,12 @@ int main()
while (fgets(input,sizeof(input),stdin)!=NULL)
{
int flag=switch_operators(input);
if(mystack.size==10)
{
printf("full stack\n");
return 0;
}
if((input[0]>=0 && input[0]<=47 && input[0]!=43 && input[0]!=45 && input[0]!=42 && input[0]!=47 && (input[0]<48 || input[0]>57)) || (input[0]>=58 && input[0]<=127))
{
printf("bad input\n");