where ret-type is the return type, op is one of the operators listed in the preceding table, and arg is an argument of any type.
To declare a binary operator function as a global function, you must declare it in the form:
ret-type operatorop( arg1, arg2 )
where ret-type and op are as described for member operator functions and arg1 and arg2 are arguments. At least one of the arguments must be of class type.作者: calvenyow 时间: 2010-9-12 10:49 PM
我只懂function overloading作者: kampung30 时间: 2011-5-2 03:57 AM
overloading很多种咯 ,那里一个?