题目内容
写出下列程序的执行结果是:__________________。#include using namespace std;template void fun( T &x, T &y ){ T temp; temp = x; x = y; y = temp;}void main(){ int i , j; i = 10; j = 20; fun( i, j ); cout << "i=" << i << "," << "j=" << j << ","; double a , b; a = 1.1; b = 2.2; fun( a, b ); cout << "a=" << a <<","<< "b=" << b << endl;}
查看答案
搜索结果不匹配?点我反馈
更多问题