title: handler for this exception, the program may be safely continued
body: <p>I am kind of new to C++ and I am having some trouble with my code. </p>
  
  <p>Part of my code is that I am trying to assign an ID number to a big number of points that have three coordinates. I have a struct of the points. Number is the number of points that I have. They are a lot and I got them from a file. This is what I am doing:</p>
  
  <pre><code>struct point{
  int coord[3];
  float color;
  };
  points *point = new point[100000];
  
  
  
  int d=0;
  for (int x = 0; x &lt; number; x++){
  for (int y = 0; y &lt; number; y++){
      for (int z = 0; z &lt; number; z++){
      point[d].coord[0] = x;
      point[d].coord[1] = y;
      point[d].coord[2] = z;
      d++;
      }
   }
  </code></pre>
  
  <p>This works for small number, but when I put the actual number of points that I have it gives me this error:
  First-chance exception at 0x00E46CD8 in CIS560_HW1a.exe: 0xC0000005: Access violation writing location 0x01470000.</p>
  
  <p>If there is a handler for this exception, the program may be safely continued.</p>
  
  <p>I have no idea what this means and I cant figure out whats wrong with my program. I know the other parts work well cuz I just get the error when I have this part. </p>