#include <iostream>
using namespace std;
int main()
{
int intone;
int &rsomeref=intone;
intone=5;
cout<<"intone "<<intone<<endl
<<"&rsomeref "<<rsomeref<<endl;
rsomeref=7;
cout<<"intone "<<intone<<endl
<<"&rsomeref "<<rsomeref<<endl;
return 0;
}
转载于:https://www.cnblogs.com/byeday/archive/2008/12/03/1346785.html