首页> 外文会议>International Conference on Mechatronics, Electronic, Industrial and Control Engineering >Discussions on References and Returning References in C++ Programming Language
【24h】

Discussions on References and Returning References in C++ Programming Language

机译:关于C ++编程语言引用和返回引用的讨论

获取原文

摘要

References are widely used in C++ programming language. A reference is a value that enables a program to indirectly access a particular data item in the computer's memory or in some other storage device. References are difficult for programmers to understand and to master. The purpose of this paper is to illustrate the common knowledge of references and returning references, and discuss how to understand them soundly and use them properly. One way to this problem is to regard these references as some certain aliases. Several examples, such as stand-along reference and returning reference, are presented to discuss the use of references and their "aliases", and a typical example is presented to illustrate how to analyze programs about the special returning reference with "aliases". At the end of this paper, a conclusion is made based on the above discussions that one of the ways mastering references and returning references is to regard them as aliases for variables, objects, and functions.
机译:参考资料广泛用于C ++编程语言。引用是使程序能够间接地访问计算机存储器中的特定数据项或一些其他存储设备的值。参考资料很难理解和掌握。本文的目的是说明引用和返回参考的共同知识,并讨论如何理解它们并正确使用它们。这种问题的一种方法是将这些引用视为某些某些别名。提出了诸如备用参考和返回参考的若干示例以讨论参考和它们的“别名”,并且提出了典型示例以说明如何分析有关“别名”的特殊返回参考的程序。在本文末尾,基于上述讨论的结论是掌握引用和返回引用的方式之一是将它们视为变量,对象和函数的别名。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号