检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:庞新法[1]
机构地区:[1]陕西省委党校科技教研部
出 处:《价值工程》2014年第17期213-214,共2页Value Engineering
摘 要:重载是面向对象程序设计中的一种重要机制,可以提高程序可读性,实现多态性。C++语言中有两种重载:函数重载和运算符重载。运算符重载实质就是函数重载。本文主要讨论的是C++中运算符重载的规则、机制以及形式。Overloading is one of the important mechanisms in object oriented programming, it can improve the readability of the program to achieve polymorphism. There are two kinds of overloading in C++ language: function overloading and operator overloading. In fact, operator overloading is overloaded functions. This paper mainly discusses the rules, mechanisms and forms of operator overloading in C++.
关 键 词:程序设计 面向对象 函数重载 运算符重载 多态性
分 类 号:TP312[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.170