#include <iostream>
using namespace std;
class A
{
public:
A()
{
cout<<"The constructor in operation."<<endl;
}
~A()
{
cout<<"Destructor function in operation."<<endl;
}
void PRINT()
{
cout<<"test Print!"<<endl;
}
};
void main()
{
A *p1=new A;
A *&r=p1;
(*r).PRINT();
r->PRINT();
delete p1;
cout<<"最后输出!"<<endl;
}