title: How to iterate through int?
body: <p>I'm confused on how i can iterate through my int, and then put the result in a int vector.. I'm needing to do this for a game, help would be very much appreciated.. honestly, i have no idea how to make this function, that will iterate through int...</p>
  
  <pre><code>cout &lt;&lt; "\n PLEASE ENTER A 4 DIGIT BINARY! OR PROGRAM WILL EXIT \n\n\t";
  cin &gt;&gt; binaryCin;
  evaluateNum(binaryCin);     
  
  void MasterMind::evaluateNum(int &amp;bin) {
      // Need to iterate through binarycin and then put it in a vector&lt;int&gt;..
  }
  </code></pre>