getline() omitting the first letter of my output string
<p>Hi i am a newbie in c++ and was doing some basic exercise. my code takes user input and feeds them in an array. Now i am using getline() to get the input string. my code is as follows:</p>

<pre><code>cin.getline(cb[0].name, 200).get();        // Cadburry
cin.getline(cb[1].name, 200).get();        // Snickers
cin.getline(cb[2].name, 200);              // Milky Bar
</code></pre>

<p>But when i output the strings, the first getline() seems to be fine but the other two are omitting the first letter of the string. So the output in this case is :</p>

<pre><code>Cadburry
nickers
ilky Bar 
</code></pre>

<p>can anyone please tell me why is it so?</p>
