????6.?????????????????????
????(1)?±??????[] (??????xibiao.cpp)//
????//????±????????????
????int operator[](int n)
????{ return m_data[n];}
????(2)??????????() (??????funOperator.cpp)//
????class Square
????{public://???()?????????
????int operator()(int n)
????{return n*n;}};
????(3)????????*??->  (?????? jianjie.cpp)//?????????
????//?????????

class PA
{private:A* m_pa;
public:PA(A* pa):m_pa(pa){}
~PA(void)
{delete m_pa;m_pa = NULL;}
//???->?????????
A* operator->(void)
{return m_pa;}
//???*?????????
A& operator*(void)
{ return *m_pa;}};

????7.new / delete ???????????
???????:
?????????????????????????????????new????????????????
?????????????????????????????????delete????????????????
????????://new []?????????????

static void* operator new[](size_t size)
{void* p = malloc(size);cout << "???????New[]:size = " << size << "??p = " << p << endl;return p;}
// delete[] ?????????
static void operator delete[](void* p)
{cout << "???????delete[]:p = " << p << endl;free(p);}