int *buf = new int[1024];
int *p = new (buf)int(100);
int *ptmp = new (buf + 1)int(1000);
cout << (int)*buf << endl;
cout << (int)*(buf + 1) << endl;
delete[] buf;
int *p = new (buf)int(100);
int *ptmp = new (buf + 1)int(1000);
cout << (int)*buf << endl;
cout << (int)*(buf + 1) << endl;
delete[] buf;