题目:
代码:
#include <iostream>
using namespace std;
int main(){
int a,b,t;
cin>>a;
cin>>b;
cout<<"a="<<a<<","<<"b="<<b<<endl;
int *pa,*pb;
pa=&a;
pb=&b;
t=*pa;
*pa=*pb;
*pb=t;
cout<<"a="<<a<<","<<"b="<<b<<endl;
}