cin not working in my code
<p>Error in line 9, 10 and 13
"no operator found which takes a left-hand operand of type 'std:istream' (or there is no acceptable conversion'"</p>

<pre><code>#include &lt;stdafx.h&gt;  // I should have put #include "stdafx.h" instead
#include &lt;iostream&gt;  // My mistake was I didn't #include &lt;string&gt;

using namespace std;
    int main()
{
    cout &lt;&lt; "This is the left step bitwise operation\n";
    string x;
    cin &gt;&gt; x;  // line 9
    cout &lt;&lt; "You typed" &lt;&lt; x;  //line 10
    string y;
    cout &lt;&lt; "Enter second number please!"; 
    cin &gt;&gt; y; // line 13
    cin.get();
    return 0;
} // line 
</code></pre>

<p>My vague guess is that I didn't #include something</p>
