int main() { Proxy * proxy = new Proxy(); proxy->request(); delete proxy; cout << "delete proxy" << endl; return 1; }
/* main.. //*/ int main() { using namespace std; cout << "init..\n"; Proxy proxy; cout << endl; cout << "call subject's request via proxy\n"; proxy.request(); cout << endl; cout << "READY.\n"; return 0; }