funguje
This commit is contained in:
parent
e8bee0935b
commit
2a2b235beb
@ -89,18 +89,13 @@ 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'))
|
||||
if((input[0]>=0 && input[0]<=47) || (input[0]>=58 && input[0]<=127))
|
||||
{
|
||||
printf("bad input\n");
|
||||
return 0;
|
||||
}
|
||||
int flag=switch_operators(input);
|
||||
input[strcspn(input,"\n")]=0;
|
||||
if (strlen(input)==0 || input[0]==' ')
|
||||
{
|
||||
printf("no input\n");
|
||||
continue;
|
||||
}
|
||||
if (flag==0 || flag==-1)
|
||||
{
|
||||
if(flag==-1 && mystack.values[mystack.size-1]==0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user