皮皮学,免费搜题
登录
搜题
【单选题】
下面的代码中,可以实现翻转数组操作的是()
A.
#include using namespace std; int main() { int a[10] = {1,2,3,4,5,6,7,8,9,10}; int begin = 0,end = 9; int tmp; while(begin < end) { tmp=a[begin]; a[begin]=a[end]; a[end]=tmp; begin++; end--; } for(int i=0;i < 10;i++) { cout << a[i] << ' ' ; } cout << endl; return 0; }
B.
#include using namespace std; int main() { int a[10] = {1,2,3,4,5,6,7,8,9,10}; int begin = 0,end = 9; int tmp; while(begin < end) { tmp=a[begin]; a[begin]=a[end]; a[end]=tmp; } for(int i=0;i < 10;i++) { cout << a[i] << ' ' ; } cout << endl; return 0; }
C.
#include using namespace std; int main() { int a[10] = {1,2,3,4,5,6,7,8,9,10}; int begin = 0,end = 9; while(begin < end) { a[begin]=a[end]; a[end]=a[begin]; } for(int i=0;i < 10;i++) { cout << a[i] << ' ' ; } cout << endl; return 0; }
D.
#include using namespace std; int main() { int a[10] = {1,2,3,4,5,6,7,8,9,10}; int begin = 0,end = 10; int tmp; while(begin < end) { tmp=a[begin]; a[begin]=a[end]; a[end]=tmp; begin++; end--; } for(int i=0;i < 10;i++) { cout << a[i] << ' ' ; } cout << endl; return 0; }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【简答题】He shook hands with his old business partner , the man who had long been his friend and confidant .
【简答题】Barbara Carter felt and spoke proudly of her great-great-grandfather because ______A. She thought her great-great grandfather was a heroic civil-rights fighter. B. Her great-great grandfather never ga...
【判断题】销售增长率是实现营业收入增长,企业增强发展能力的后盾。
A.
正确
B.
错误
【判断题】He shook hands with her, looking at her eyes.
A.
正确
B.
错误
【简答题】Why did Barbara Carter speak proudly of her great-great-grandfather? Because she thought her great-great-grandfather was a herotic civil-rights fighter and never
【单选题】He simply________with delight as he shook hands with the pop star.
A.
laughed
B.
screamed
C.
beamed
D.
yelled
【单选题】Among the three heroes mentioned in the second part, who was a brave white “conductor”?
A.
John Parker
B.
Levi Coffin
C.
Josiah Henson
D.
Barbara Carter
【简答题】完形填空。 The first time I (Jimmy Carter) fully realized how much our lives had changed was when I approached my sieth birthday. In one of her hour-long special 1 Barbara Waiters spoke with me about ...
【单选题】He shook hands with the visitors ________ as to convey his apology.
A.
by such a way
B.
for the way
C.
in such a way
D.
on the way
【单选题】下列关于标高注写的说明,错误的是( )。
A.
标高注写以米为单位;
B.
标高数值在总平面图中写到小数后2位,在其他建施和结施图中要注写到小数后3位;
C.
负数标高应注写“一”号,正数标高不注与“+”号;
D.
总平面图的标高符号与剖面图的标高符号相同,都用细实线绘制的等腰三角形表示。
相关题目: