Issue in getting input of an string from user
<p>I use the following code to get input from the user:</p>

<pre><code>getline(cin,G,'\n');
</code></pre>

<p>But when I run my code, I have to manually enter myself the enter space which should be done instead by the code automatically. So kindly let me know how to do that?</p>
