问题c引入引用类型与传统指针有什么不同呢?
作为参考,一言以蔽之:
areferencecanbethoughtofasaconstantpointer (nottobeconfusedwithapointertoaconstantvalue! ) with automatic indirection,I.ethecompilerwillapplythe * operator for you。
引用是自动嵌套的常量指针
问题c引入引用类型与传统指针有什么不同呢?
作为参考,一言以蔽之:
areferencecanbethoughtofasaconstantpointer (nottobeconfusedwithapointertoaconstantvalue! ) with automatic indirection,I.ethecompilerwillapplythe * operator for you。
引用是自动嵌套的常量指针
版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。