在某C++forums 抄下来的对话,当是学习英语
下面个人翻译,如果翻译不好,请指教Reference are pointers that are automatically dereferenced
引用是指针,自动间接引用的
Great.
很好
That's what really used isn't it?
vb . net能不能使它
Why not declare reference then rather than pointers?
为何宁愿是指针,而不是宣布引用
When we are building high level program, we shouldn't deal with pointers directly do we?
当我们设计大型程序,我们不应该处理直接指针吗?
Zhuge (1096) Jan 4, 2011 at 10:46am
Two reasons: you can't change a reference, and references do not invoke polymorphism like pointers do.
两个原因:你不能改变引用,引用不像指针调用多态
PS:翻译还是一塌胡涂,不过要坚持