Esempio n. 1
0
int main()
{
    Proxy * proxy = new Proxy();
    proxy->request();

    delete proxy;
    cout << "delete proxy" << endl;
    return 1;
}
Esempio n. 2
0
/*
  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;
}