- Jan 21, 2005
- 17,722
- 6
- 81
I don't know where to start, and yes it is an assignment for a class of mine. I need some tips, I don't need the answer or a complete thing of code. I read through the crap on Wikipedia about it (click here for that). I thought I had it, but it didn't work out the right way. We're supposed to enter numbers up to 2047 (11111111111), but we don't have to write code that checks for that. And it has to output the base 10 numbers to an 11 digit binary number.
I think I have the right start. The
cout << div << "<- div :: mod ->" << mod << endl;
line is just a debugging line I made to show the outputs.
Oh yeah, we can't use while/do statements because we haven't gotten that far. We are limited to if and if/else
I think I have the right start. The
cout << div << "<- div :: mod ->" << mod << endl;
line is just a debugging line I made to show the outputs.
Oh yeah, we can't use while/do statements because we haven't gotten that far. We are limited to if and if/else