title: How to use enum with user input in c++
body: <p>Im making a simple rock paper scissors game and I need to use the enumeration data structure.
  My problem is that i cannot compile the following code because of an invalid conversion from int (userInput) to Throws (userThrow).</p>
  
  <pre><code>enum Throws {R, P, S};
  int userInput;
  cout &lt;&lt; "What is your throw : ";
  cin &gt;&gt; userInput;
  Throws userThrow = userInput;
  </code></pre>
  
  <p>Help?!</p>