title: C++ filling arrays with constant values, looping and changing values
body: <p>This is some basic code for an array I'm writing. I need to fill all slots (14) of the array with 4, and then write a loop that will replace the slots 6 and 13 with 0. I am a beginner and have not learned vectors yet, just basic programming material.</p>
  
  <pre><code>const int MAX = 14;
  
  int main ()
  {
  
      board ();
      cout&lt;&lt;endl;
  
      {
  
  
          int i;
          int beadArray[MAX] = {4};
  
          for (i = 0; i &lt; MAX; i++)
          {
              beadArray[i] = -1;
          }
  
          for (i = 0; i &lt; MAX; i++)
          {
               cout&lt;&lt;i&lt;&lt;"\t";
          }
       }
  
  
      cout&lt;&lt;endl;
      system("pause");
      return 0;
  }
  </code></pre>