摘要:
#include <iostream>using namespace std;class Screen{ };class CheckedPtr{public: // 没有默认构造函数 CheckedPtr(Screen* b,Screen* e):beg(b),end(e),curr(b){} //解引用操作符 * Screen& operator*(); const Screen& operator*() const; //下标操作符 Screen& operator[](const size_t); const Screen& operator[ 阅读全文