题库 信息学奥赛题库 题目列表 阅读程序写结果:#include <iostream> usi...
填空题

阅读程序写结果:

#include <iostream>
using namespace std;
int main() {
	int a[6] = {1, 2, 3, 4, 5, 6};
	int pi = 0;
	int pj = 5;
	int t, i;
	while (pi < pj) {
		t = a[pi];
		a[pi] = a[pj];
		a[pj] = t;
		pi++;
		pj--;
	}
	for (i = 0; i < 6; i++)
		cout << a[i] << ",";
	cout << endl;
	return 0;
}

输出:____

题目信息
填空题 2016年 初赛
-
正确率
0
评论
29
点击
QQ
微信