其中包括前后加/减(i++、--foo), 加减乘除赋值运算符(a+=3、b*=2、c/=2.2、d-=6.2)。
These include pre- and post-increment/decrement ( i++, --foo ), add/sub/mult/div assign operators ( a+=3, b*=2, c/=2.2, d-=6.2 ).
本书中有大量的例子,从简单(加减操作符的重载)到复杂(重载数值常量以及运行时间等)一应俱全。
There are many examples covering the range from simple (addition/subtraction overloading) to the complex (overloading numeric constants and run-time overloading).
应用推荐