title: C++ error: "Array must be initialized with a brace enclosed initializer"
body: <p>I am getting the following C++ error:</p>
  
  <pre><code>array must be initialized with a brace enclosed initializer 
  </code></pre>
  
  <p>From this line of C++</p>
  
  <pre><code>int cipher[Array_size][Array_size] = 0;
  </code></pre>
  
  <p>What is the problem here? What does the error mean? Below is the full code:</p>
  
  <pre><code>string decryption(string todecrypt)
  {
      int cipher[Array_size][Array_size] = 0;
      string ciphercode = todecrypt.substr(0,3);
      todecrypt.erase(0,3);
      decodecipher(ciphercode,cipher);
      string decrypted = "";
      while(todecrypt.length()&gt;0)
      {
          string unit_decrypt = todecrypt.substr(0,Array_size);
          todecrypt.erase(0,Array_size);
          int tomultiply[Array_size]=0;
          for(int i = 0; i &lt; Array_size; i++)
          {
              tomultiply[i] = int(unit_encrypt.substr(0,1));
              unit_encrypt.erase(0,1);
          }
          for(int i = 0; i &lt; Array_size; i++)
          {
              int resultchar = 0;
              for(int j = 0; j&lt;Array_size; j++)
              {
                  resultchar += tomultiply[j]*cipher[i][j]; 
              }
              decrypted += char((resultchar%229)-26);
          }
      }
      return decrypted;
  }
  </code></pre>