015 看上去好坑的运算符重载

#include <iostream> using namespace std; class MyInt { int nVal; public: MyInt( int n) { nVal = n ;} MyInt& operator- (int n) { nVal -= n; return *thi
posted @ 2022-02-19 22:46  icefield817  阅读(79)  评论(0编辑  收藏  举报