C++ How do I fill in two-dimensional array : <p>I just want to fill in two-dimensional array string values. e.g: array[5][6] </p>

<pre><code>.X.... 
X..... 
XX.... 
.....X 
...X..
</code></pre>

<p>I tried to use <code>getline(cin, array)</code> but it makes cells:</p>

<pre><code>.
X
.
.
.
. etc
</code></pre>

<p>Also, I tried to use <code>_getch();</code> but it doesn't output values I just entered. So, is there a way that makes input clearner?</p>
