title: C++ double char array deliminator
body: <p>I am trying to input a few first names into a double character array with the following code:</p>
  
  <pre><code>int main(void) 
  
  char firstName[4][10];
  Int num = 2;
  
  for (int i=0; i&lt;num; i++) 
    for (int j=0; j&lt;10; j++) 
          cin &gt;&gt; firstName[i] [j] ;
          if(firstName[i] [j] == '.') 
              break;
  
  Return(0);
  </code></pre>
  
  <p>Basically, I am looking for a simple, better way of inputting the names into a double char array without having to end the input with a period. If I try using the char delimiter. ' /0' it still attempts to fill in the first full row of the characters array before continuing. </p>