题目内容

写出下列程序段的输出结果(队列中的元素类型qelem type为char)。voidmain( ){queue q;init queue (q);char x=’e’;y=’c’;enqueue (q,’h’);enqueue (q,’r’); enqueue (q, y); dequeue (q,x); enqueue (q,x); dequeue (q,x); enqueue (q,’a’);while(!queueempty(q)){ dequeue (q,y);printf(y); };printf(x); }

查看答案
更多问题

写出下列程序段的输出结果(栈的元素类型selem type为char)。voidmain( ){ 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); }

()是中华民族的优秀传统。

A. 崇尚精神
B. 崇尚武力
C. 崇尚道德
D. 崇尚理性

()是改革开放的生命。

A. 力行
B. 求实
C. 创新
D. 责任

对中国精神系统阐释的“四个伟大”分别是()。

A. 伟大创造精神
B. 伟大奋斗精神
C. 伟大团结精神
D. 伟大梦想精神

答案查题题库