#include<iostream>
using namespace std;
int main()
{
int a;
int & b=a;
//int & c=1; //error C2440: 'initializing' : cannot convert from 'const int' to 'int &'
int const & c=1;
const int & d=1;
const int & e=a;
const int & f=d;
cout<<e<<endl;//-858993460 const类型名在前在后无所谓
return 0;
}
using namespace std;
int main()
{
int a;
int & b=a;
//int & c=1; //error C2440: 'initializing' : cannot convert from 'const int' to 'int &'
int const & c=1;
const int & d=1;
const int & e=a;
const int & f=d;
cout<<e<<endl;//-858993460 const类型名在前在后无所谓
return 0;
}