C ++运算符重载 [英] C++ operator overloading
本文介绍了C ++运算符重载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在这里不能重载?
a](.)
b](::)
c](?:)
d](+ =)
e](>>)
f](<)
g](&&)
h](=)
谢谢!
Which cannot be overloaded here?
a] ( . )
b] ( :: )
c] ( ?: )
d] ( += )
e] ( >> )
f] ( < )
g] ( && )
h] ( = )
Thanks!
推荐答案
a,b,c无法重载.看到这里:
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Operators/Operator_Overloading [^ ]
a, b, c cannot be overloaded. See here:
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Operators/Operator_Overloading[^]
这篇关于C ++运算符重载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文