Overloading Arithmetic Operators

后端 未结 4 1451
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-24 10:52

The assignment operator can be declared as

T& operator= (const t&);

in a class, but the arithmetic operators cannot be defined that way. It has to be fri

4条回答
提交回复
热议问题