title: C++ Making a 2D boolean matrix
body: <p>I am making a program where I have 2 vectors (<code>clientvec</code> and <code>productslist</code>) and I need to create a <em>2D boolean matrix</em> where the columns is the size of <code>productslist</code> vector and the lines is the size of <code>clientvec</code> vector, but it gives me this error: </p>
  
  <blockquote>
    <p>"expression must have a constant value"</p>
  </blockquote>
  
  <p>Here is the code I used:</p>
  
  <pre><code>unsigned int lines = clientvec.size();
  unsigned int columns = productslist.size();
  bool matrixPublicity[lines][columns] = {false};
  </code></pre>
  
  <p>Pls help me..</p>
  
  <p>Edit: I am new at c++ so assume I know nothing xD</p>
  
  <p>Edit2: I already know for the answers that I cannot initialize an array with non constant values, now the question is how can I put them after initialize...</p>