funguje
This commit is contained in:
parent
4d3d0d93fc
commit
1bea0762e3
@ -89,6 +89,11 @@ int main()
|
|||||||
char input[1000];
|
char input[1000];
|
||||||
while (fgets(input,sizeof(input),stdin)!=NULL)
|
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);
|
int flag=switch_operators(input);
|
||||||
input[strcspn(input,"\n")]=0;
|
input[strcspn(input,"\n")]=0;
|
||||||
if (strlen(input)==0 || input[0]==' ')
|
if (strlen(input)==0 || input[0]==' ')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user