#include #include #include "cookie.h" using namespace std; int main(int argc, char **argv) { const cookie *p1 = new cookie; //call coookie::operator new const cookie *p2 = new cookie; const cookie *p3 = new cookie; delete p2; //call cookie::operator delete delete p1; delete p3; const cookie *p4 = new cookie[3]; //call global operator new[] delete[] p4; //call global operator delete[] const cookie *p5 = ::new cookie; //call global operator new delete p5; //deliberate mismatch: call cookie::operator delete return EXIT_SUCCESS; }