funguje
This commit is contained in:
parent
5aec2e1989
commit
37cc0185d8
@ -87,9 +87,10 @@ int main()
|
||||
struct stack mystack;
|
||||
memset(&mystack,0,sizeof(struct stack));
|
||||
char input[1000];
|
||||
int count=0;
|
||||
int no_in=0;
|
||||
while (fgets(input,sizeof(input),stdin)!=NULL)
|
||||
{
|
||||
no_in=1;
|
||||
int flag=switch_operators(input);
|
||||
input[strcspn(input,"\n")]=0;
|
||||
if (strlen(input)==0 || input[0]==' ')
|
||||
@ -110,6 +111,10 @@ int main()
|
||||
}
|
||||
print_stack(&mystack);
|
||||
}
|
||||
if(!no_in)
|
||||
{
|
||||
printf("no input");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user