作业帮 > 综合 > 作业

1)Void main( ){ stack s; char x,y; InitStack(s); x=‘c’;y=‘k’

来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/12 06:43:04
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’
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