1)Void main( ){ stack s; char x,y; InitStack(s); x=‘c’;y=‘k’; push(s,x); push(s,’a’); push(s,1)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

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 15:50:54

1)Void main( ){ stack s; char x,y; InitStack(s); x=‘c’;y=‘k’; push(s,x); push(s,’a’); push(s,1)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
1)Void main( ){ stack s; char x,y; InitStack(s); x=‘c’;y=‘k’; push(s,x); push(s,’a’); push(s,
1)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(s)){pop(s,y); printf(y);};
printf(x);
}
的输出结果是多少?

1)Void main( ){ stack s; char x,y; InitStack(s); x=‘c’;y=‘k’; push(s,x); push(s,’a’); push(s,1)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
this is a lion he is big he is strong His teeth are big and sharp this is amouse he is small the lionsihungry the mouse is afraid the lion is afrfid the mouse is on the gransh the mouse is drave his teeth are sharp the lion is notafraid the lion and the mouse are happy they are friends