65,208
社区成员
发帖
与我相关
我的任务
分享#include<iostream>
using namespace std;
int main(){
int i;
//i=3;
const int &j= i;
i =20; //这句话为什么合法,i不是被转化为const对象了吗?
cout <<j<<" "<<i;//j,i都是20 - -!
system("pause");
return 0;
}