title: How come the first letter in my final cout gets cut off?
body: <pre><code>int main () {
      const int MAX_INPUT = 99;
      string names[MAX_INPUT];
      string eraseName;
      string newList;
      int numNames = 0;
      int i = 0;
  
  
      cout &lt;&lt; "How many names do you want (max 99)? ";
      cin &gt;&gt; numNames;   
  
      do {
          if(numNames &gt; MAX_INPUT) {
              cout &lt;&lt; "Out of memory!" &lt;&lt; endl;
              break;
          }  
          cout &lt;&lt; "Enter name #" &lt;&lt; (i+1) &lt;&lt; ": ";
          cin.ignore();
          getline(cin,names[i]);
          ++i;
      }  
      while (i &lt; numNames);
  
      cout &lt;&lt; "What name do you want to eliminate? ";
      getline(cin,eraseName);
      cout &lt;&lt; "Here is the list in reverse order, skipping ";
      cout &lt;&lt; eraseName &lt;&lt; "..." &lt;&lt; endl;
  
      i = 0;
      for (i = 0; i &lt; numNames; ++i) {
          cout &lt;&lt; names[i] &lt;&lt; endl;
      }       
      return 0;
  } 
  </code></pre>
  
  <p>I have an assignment where I have to "eliminate" an element in an array and recreate the output. I know my final for loop will not erase the element, it's just there because I was testing the issue, but if names has two inputs (John Doe and Jane Doe) and I say to cout them the final loop couts: </p>
  
  <p>John Doe<br>
  ane Doe</p>