title: error C2784 in Visual 2010 C++
body: <p>When i go to compile this code it gives me error C2784:</p>
  <blockquote>
  <p>error C2784: <code>'std::basic_istream&lt;_Elem,_Traits&gt; &amp;std::operator &gt;&gt;(std::basic_istream&lt;_Elem,_Traits&gt; &amp;,std::basic_string&lt;_Elem,_Traits,_Alloc&gt; &amp;)'</code> : could not deduce template argument for <code>'std::basic_istream&lt;_Elem,_Traits&gt; &amp;'</code> from <code>'std::ostream'</code></p>
  <p>1&gt;          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string(458) : see declaration of <code>'std::operator &gt;&gt;'</code></p>
  </blockquote>
  <p>what does that mean? did 2010 change some preproccessor directives? or am i just a noob?</p>
  <p>i figure im not using getline correctly, but thats my guess any help would be appreciated. thank you</p>
  <pre><code>#include &quot;stdafx.h&quot;
  #include &lt;iomanip&gt;
  #include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  using namespace System;
  
  int main()
  {
      string Date;
      string ISBN;
      string Title;
      int qty;
      float price;
      cout&lt;&lt; &quot;\n\n Serendipity Booksellers\n Cashier Module\n\n&quot;;
      cout&lt;&lt; &quot;Date:&quot;;
      getline(cin, Date);
      cout&lt;&lt; &quot;\nQuantity of Book:&quot;;
      cin&gt;&gt; qty;
      cout&lt;&lt;&quot;\nISBN:&quot;;
      getline(cin, ISBN);
      cout&lt;&lt;&quot;\nTitle:&quot;;
      getline(cin, Title);
      cout&gt;&gt;&quot;\nPrice:&quot;;
      cin&gt;&gt; price;
  
      cout&lt;&lt;&quot;Serendipity Book Sellers\n\nDate:\n\nQty   ISBN\t\tTitle\t\t\tPrice\tTotal\n&quot;;
      cout&lt;&lt;&quot;____________________________________________________________________________&quot;;
      cout&lt;&lt;&quot;\n\n\n\t\tSubtotal\n\t\tTax\n\t\tTotal\n\n\nThank You for Shopping at Serendipity!\n&quot;;
  
      return 0;
  }
  </code></pre>