title: How to input a string in a 2D array in C++?
body: <p>I am trying to input a string in a 2D char array. this is the error I am getting.</p>
  
  <pre><code>error: cannot convert ‘std::string {aka std::basic_string&lt;char&gt;}’ to ‘char’ in assignment
  inputArray[i][j] = inputMessage;
  </code></pre>