title: enum type can not accept cin command
body: <p>Look t this code plz:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
  
      enum object {s,k,g};
      object o,t;
  
      cout &lt;&lt; "Player One: "; cin &gt;&gt; o;
      cout &lt;&lt; "Player Two: "; cin &gt;&gt; t;
  
      if (o==s &amp;&amp; t==g) cout &lt;&lt; "The Winner is Player One.\n";
      else if (o==k &amp;&amp; t==s) cout &lt;&lt; "The Winner is Player One.\n";
      else if (o==g &amp;&amp; t==k) cout &lt;&lt; "The Winner is Player One.\n";
      else if (o==g &amp;&amp; t==s) cout &lt;&lt; "The Winner is Player Two.\n";
      else if (o==s &amp;&amp; t==k) cout &lt;&lt; "The Winner is Player Two.\n";
      else if (o==k &amp;&amp; t==g) cout &lt;&lt; "The Winner is Player Two.\n";
      else cout &lt;&lt; "No One is the Winner.\n";
          return 0;
  }
  </code></pre>
  
  <p>while compiling I will get this error:<code>no match for 'operator&gt;&gt;' in 'std::cin &gt;&gt; o</code>
  I'm using code-blocks. so what is wrong with this code?</p>