funguje
This commit is contained in:
parent
3916fb6acd
commit
53df65f880
@ -89,6 +89,12 @@ int main()
|
|||||||
while (fgets(input,sizeof(input),stdin)!=NULL)
|
while (fgets(input,sizeof(input),stdin)!=NULL)
|
||||||
{
|
{
|
||||||
int flag=switch_operators(input);
|
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))
|
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");
|
printf("bad input\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user