funguje
This commit is contained in:
parent
9c25ad4c74
commit
9c8d712275
@ -89,7 +89,6 @@ int main()
|
|||||||
char input[1000];
|
char input[1000];
|
||||||
while (fgets(input,sizeof(input),stdin)!=NULL)
|
while (fgets(input,sizeof(input),stdin)!=NULL)
|
||||||
{
|
{
|
||||||
printf("no input");
|
|
||||||
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]==' ')
|
||||||
@ -110,6 +109,7 @@ int main()
|
|||||||
}
|
}
|
||||||
print_stack(&mystack);
|
print_stack(&mystack);
|
||||||
}
|
}
|
||||||
|
printf("no input");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user