正在加载图片...
10.1什么是运算符重载 Operator Overloading Operator overloading allows the programmer to define versions of the predefined operators for operands of class type. Operator overloading is just "syntactic sugar,"which means it is simply another way for you to make a function call. The difference is that the arguments for this function don't appear inside parentheses,but instead they surround or are next to characters you've always thought of as immutable operators. 2017年4月26日12时 第10章运算符重载 3 BACK NEXHOME • Operator overloading allows the programmer to define versions of the predefined operators for operands of class type. • Operator overloading is just “syntactic sugar, ” which means it is simply another way for you to make a function call. • The difference is that the arguments for this function don’t appear inside parentheses, but instead they surround or are next to characters you’ve always thought of as immutable operators. 2017年4月26日12时 15分 第10章 运算符重载 3
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有