//���õı��� //���� �� ���õı�����C++�ڲ�ʵ����һ��ָ�볣�� #if(0) #include <iostream> //���������ã��滻Ϊ int* const ref = &a; void func(int& ref) { ref = 100; //ref�����ã�ת��Ϊ *ref = 100 } int main() { int a = 10; //�Զ�ת��Ϊ int* const ref = &a ; ָ�볣����ָ��ָ���Ը��ģ�Ҳ˵��Ϊʲô���ò��ɸ��� int& ref = a; ref = 20; //�ڲ�����ref�����ã��Զ�������ת��Ϊ�� *ref = 20; std::cout << "a : " << a << std::endl; std::cout << " ref : " << ref << std::endl; func(a); system("pause"); return 0; } //C++�Ƽ����ü�������Ϊ����㣬���ñ�����ָ�볣�����������ҵ�ָ����������������������� #endif