Error with gets
<p>I the below mentioned program:</p>

<pre><code>string s;
cout&lt;&lt;"Enter a string:";
gets(s);
</code></pre>

<p>I expect my input to be of the form: "Hilton Hotels".</p>

<p>On using gets, I get the following error:</p>

<pre><code> error: cannot convert ‘std::string {aka std::basic_string&lt;char&gt;}’ to ‘char*’ for argument ‘1’ to ‘char* gets(char*)’
</code></pre>

<p>I can not use "cin" as I want my input to consist of space and special characters like '_' etc, also I want my delimiter to be 'enter'. Is there some other way...or please be kind enough in correcting the error.</p>
