title: How to get a user to input 10 letters, then stores these in a char array
body: <p>I've tried this, but I having no luck, I'm am looking to get user input 5 letters and then print them out.</p>
  
  <pre><code>string input = "";
  const int max = 5;
  char string[max] = { };
  cout &lt;&lt; "Please enter 5 letters: " &lt;&lt; endl;
  cin.getline(string, max, '\n');
  cout &lt;&lt; "Your letters :" &lt;&lt; string[max];
  </code></pre>