title: Make array as big as the input using 'cin' in c++
body: <p>I'm prettty new to c++ programming and haven't got grip on the most basic techniques.</p>
  
  <p>My problem is that I want to read characters into a array and make that array just as long as the input. For example if the input would be 'a', 'b' and 'c' then the length of the array would be 3. In java this would be like this for integers using StdIn package:</p>
  
  <pre><code>int[] n = StdIn.readInts(); //enter the numbers 5,6,7,8 f.x.
  StdOut.println(n.length); //would print 4
  </code></pre>
  
  <p>Hopefully I was clear enough.</p>