问题
单项选择题
下列程序的输出结果是( )。 #include<iostream.h> main() { int m=5; if(m++>5) cout<<m; else cout<<m--; }
A.7
B.6
C.5
D.4
答案
参考答案:B
解析: 此题中,因为m++>5成立(此时m的值变为6),所以执行语句cout<<m;输出结果为6。
下列程序的输出结果是( )。 #include<iostream.h> main() { int m=5; if(m++>5) cout<<m; else cout<<m--; }
A.7
B.6
C.5
D.4
参考答案:B
解析: 此题中,因为m++>5成立(此时m的值变为6),所以执行语句cout<<m;输出结果为6。
书面表达。 某英文网站正在开展关于填报志愿时首先考虑专业还是学校的讨论。 请你根据下面 所给的要点提示,用英语写一篇短文,描述学生中存在的两种想法,并谈谈你自己的看 法,将此文在该网站的BBS上发表。
| ||||||||||||
Every student will be faced with the question after he passes the college entrance examinations: Should I choose a good major or a good university first? _________________________________ ____________________________________________________________________________ |