主题:求助,帮忙详细讲解一下
有哪位高手可以帮忙讲解每一步骤具体都执行些什么????
void main()
{
stack s;
char x, y;
Initstack(s);
x='c' , y='k';
push(s,x);
push(s,'a');
push(s,y);
pop(s,x);
push(s,'t');
push(s,x);
pop(s,x);
push(s,'s');
while(!stackEmpty())
{pop(s,y);printf(y);};
printf(x):
}
void main()
{
stack s;
char x, y;
Initstack(s);
x='c' , y='k';
push(s,x);
push(s,'a');
push(s,y);
pop(s,x);
push(s,'t');
push(s,x);
pop(s,x);
push(s,'s');
while(!stackEmpty())
{pop(s,y);printf(y);};
printf(x):
}