Home  >  Q&A  >  body text

c++中对同一类中两个对象使用操作符

PHP中文网PHP中文网2714 days ago537

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 13:22:09

    Under normal circumstances, an error will be reported during compilation and the code will not work.

    If you overload the corresponding operator, then execute it according to the function you wrote yourself.

    reply
    0
  • 阿神

    阿神2017-04-17 13:22:09

    If you overload an operator, follow the code you overloaded

    If it is not reloaded, haha. .

    reply
    0
  • Cancelreply