标签:std amp iostream return ons pac cout names ios
#include<iostream>
using namespace std;
int main()
{
int oneInt =1;
int & ref=oneInt;
const int &refc=oneInt;
ref=2;
cout<<"oneInt="<<oneInt<<","<<"ref="<<ref<<endl;
cout<<"refc="<<refc<<endl;
oneInt=3;
cout<<"refc="<<refc<<endl;
int & ref2=ref;
cout<<"ref2="<<ref2<<endl;
//refc=5;
return 0;
}
标签:std amp iostream return ons pac cout names ios
原文地址:https://www.cnblogs.com/liushuiyi/p/14201000.html