Converting Integers to Binary using vectors and random number generators. Need some guidance!

Pages: 12
I would just use a bitset, then put it into a vector... That's how you should do it if you want to use the STL anyway...
Last edited on
@IWishIKnew: Unfortunately college professors tend to have very absurd requirements.
Nick6312 wrote:
What I was trying to do was to divide the integers stored in NumbersToBeConverted by 2, in order to get the binary value after %2.

Could you suggest a way to do this?
Yes, I suggest actually accessing one of the elements in the vector instead of the size of the vector.
Topic archived. No new replies allowed.
Pages: 12