#include using namespace std; const int num=5; class people { public: people(int size=num); ~people(){delete[]p;} int&operator[](int off); const int&operator[](int off)const; int GetSize()const{return size;} class wrong{}; class offset { public: offset(int Size):size(Size){} ~offset(){} virtual int Get(){return size;} virtual void show() { cout<<"抛出offset异常\n"; cout<<"下标值"<10000) { throw Big(Size); } if (Size<1) { throw Nav(Size); } p=new int[size]; for (int i=0;i=0&&off=0&&off