【发布时间】:2011-03-17 22:28:24
【问题描述】:
我知道大多数操作员的名字,但不知道operator<< 和operator>> 叫什么。
即
operator=() // the assignment operator
operator==() // the equality of comparison operator
operator++() // the increment operator
operator--() // decrement operator etc.
operator<() // the less-than operator
等等……
【问题讨论】:
-
我喜欢叫他们
<<和>>,但是发音对有些人来说有点难。 -
w.r.t iostream 标头,> 是插入)。很淘气。
-
远小于和远大于 ;)
-
遗憾的是,这份全面的参考资料对此事只字未提...oops.se/~urban/pit/intercal.ps
-
@Vulcan:实际上不是相反吗?