节点文献

C++中运算符重载的应用探讨

Application of operator overloading in C++

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 卢香清张振莲

【Author】 LU Xiang-qing,ZHANG Zhen-lian(Department of Computer Science,Nanyang Normal University,Nanyang 473061,China)

【机构】 南阳师范学院计算机科学系南阳师范学院计算机科学系 河南南阳473061河南南阳473061

【摘要】 多态性是面向对象程序设计的重要支柱之一,而运算符重载又是实现多态性的一个重要途径。运算符重载使得程序员把运算符的使用扩展到操作数是对象的情况,由运算符构成的表达式常常比函数调用更简洁易懂。本文对C++中运算符重载的概念及规则做了概括,对重定义运算符做了说明。

【Abstract】 Polymorphism is an important pole of OPP,and operator overloading is an important path of polymorphism realized.Programmer can define the operator that operator datum are objects.The expression composed of operator is often more laconic and easier to understand than the function.In this paper,the conception and rule of operation overloading is summarized,and how to re-define the operator is explained.

  • 【文献出处】 南阳师范学院学报 ,Journal of Nanyang Normal University , 编辑部邮箱 ,2006年06期
  • 【分类号】TP312.1
  • 【下载频次】60
节点文献中: 

本文链接的文献网络图示:

本文的引文网络