新手:交换函数怎么不行
#include<iostream.h>void change(int i,int j);
void main()
{
int x=5;
int y=3;
cout<<"original x="<<x<<endl;
cout<<"original y="<<y<<endl;
change(x,y);
cout<<"change x="<<x<<endl;
cout<<"change y="<<y<<endl;
while(1);
}
void change(int i,int j)
{
i=i+j;
j=i-j;
i=i-j;
}