题目
写出下列程序段的输出结果:(队列中的元素类型QElem Type为char).
void main( ){
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);
}
void main( ){
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);
}
提问时间:2021-04-04
答案
char.
1.h
2.hr
3.hrc
4.rc
5.rch
6.ch (x='r')
7.cha
8.char
1.h
2.hr
3.hrc
4.rc
5.rch
6.ch (x='r')
7.cha
8.char
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
- 1描写珍惜时间的诗有哪些
- 2一艘轮船从A港驶往B港时逆水每小时行40千米,……
- 3乙酸与氢氧化钠的乙醇溶液反应么?
- 4Besides helping students to become more,(interesting/interested)in English
- 5妈妈用14.3元买回苹果,梨和桔子共10千克,苹果每千克2元,梨每千克1.6元,桔子每千克1.1元.
- 6什么是人类最早用来认识宇宙的工具.
- 7甲状腺激素的受体在细胞膜上还是在细胞内部?
- 8超微量电子天平的分度值的单位是什么?
- 9人呼出的气体是氧气多还是二氧化碳多?为什么?
- 10yes ,there are some books in the bag
热门考点