How to itterate through int? : 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...

     cout << "\n PLEASE ENTER A 4 DIGIT BINARY! OR PROGRAM WILL EXIT \n\n\t";
      cin >> binaryCin;
      evaluateNum(binaryCin);     
    
    void MasterMind::evaluateNum(int &bin)
    {
        //Need to itterate through binarycin, and then but it in a vector<int>..
    }