这个类似swap()函数功能 请教大伙意见
#include <iostream>using namespace std;
void change(int a, int b)
{
int k,kk,temp;
k = a, kk = b;
temp = k;
k = kk;
kk = temp;
a = k, b = kk;
}
int main(void)
{
int x = 44;
int y = 55;
change(x,y)
cout << "x=" << x << endl;
cout << "y=" << y << endl;
return 0;
}