#include <iostream>
using namespace std;
class Object
{
public:
int x = 0;
};
int main(int nArg, char* pszArgs[])
{
Object* objects = new Object[100];
Object* objaddr;
for (int n = 0; n < 50; n++)
{
objaddr = objects + (sizeof(Object)*n);
objaddr->x = n;
}
return 0;
}