C++ 三十课 运算符重载

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/clksjx/article/details/88852692

《面向对象程序设计C++——网易云课堂,翁恺》

通过定义函数改变已有操作符的行为功能。不能自定义新的操作符。

//重载*操作符
const int operater *(){
    ...
}

猜你喜欢

转载自blog.csdn.net/clksjx/article/details/88852692