C++赋值运算符谨记

来源:互联网 发布:adobe pdf reader mac 编辑:程序博客网 时间:2024/06/02 00:11

obj& operator=(const obj& copy){

if ( this=&copy )

return *this;//没啥事也要加上

..............................

}

0 0
原创粉丝点击