what does this do: cin.get(name,21)
<p>My homework assignment begins with this but i do not understand what the cin.get(name,21) statement actually does.</p>

<pre><code>char name[256]
double rate[10], hours[10];
int i = 0;

while (cin.get(name,21)) 
{
cin &gt;&gt; rate[i];
cin &gt;&gt; hours[i];
}
</code></pre>

<p>I need to have an array of names atleast 10 names long with different rates and hours and after they are all collected then i need to print them in order.</p>

<p>I dont know what the cin.get method does so i do not know how to put it into an array like the other variables</p>
