すいません。こうしてました。
int *data1 = new[1000 * 1000];
int i = 0;
for(i = 0;i <= 1000 * 1000;i++)
  data1[i] = 0;