This commit is contained in:
Your Name 2025-10-16 02:46:16 +02:00
parent 4d3d0d93fc
commit 1bea0762e3

View File

@ -89,6 +89,11 @@ int main()
char input[1000];
while (fgets(input,sizeof(input),stdin)!=NULL)
{
if((input[0]>'A' && input[0]<'Z') || (input[0]>'a' && input[0]<'z'))
{
printf("bad input\n");
return 0;
}
int flag=switch_operators(input);
input[strcspn(input,"\n")]=0;
if (strlen(input)==0 || input[0]==' ')