正在加载图片...
11.2 Fundamentals Restrictions 限制 o To use an operator on class objects, that operator must be overloaded with three exceptions(针对对象,有三个运算符不用重 载): #include <iostream> using namespace std int main() int i, j; =18 1=(j++,j+188,999+1); cout < i; return 0; 0 2018, SEU. All rights reserved. 11© 2009, SEU. All rights reserved. © 2018, SEU. All rights reserved. 11 11.2 Fundamentals & Restrictions --- 限制 To use an operator on class objects, that operator must be overloaded with three exceptions(针对对象,有三个运算符不用重 载): assignment operator (=) address operators (&) comma operators (,)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有