I want to get multi line by using string data type not char type
<p>Look at the examples to see what do I want</p>

<pre><code>string name
cin &gt;&gt; name;
</code></pre>

<p>This example does not allow spaces or multi line</p>

<pre><code>char name[20];
cin.getline(name,20);
</code></pre>

<p>This example allow spaces and multi line</p>

<p><strong>My question:</strong>
I want to using string data type with getline function or other function work with string  data type allows mulitline and spaces</p>
