Hi cplusplus forum,
I'm writing some code to convert decimal to binary.
Any ideas on how to get this to compile?
// k = 0;
// while n != 0;
// bk = n mod 2;
// n = n/2;
// k = k + 1;
Hi there,
once again, please give this your best shot and try it first for yourself.
Here's some links, incidentally found on this very forum, that might help you get started:
http://www.cplusplus.com/forum/general/5903/
http://www.cplusplus.com/forum/beginner/69258/
http://www.cplusplus.com/forum/general/60414/
http://www.cplusplus.com/forum/windows/30135/
Hope that helps.
All the best,
NwN