写出下列程序段的输出结果(栈的元素类型SElem Type为char)。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);
写出下列程序段的输出结果(栈的元素类型SElem Type为char)。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);
发布时间:2025-12-20 17:01:09