Hi I am unable to reverse the binary representation of a number is there an easy way to do it? Please?
Printable View
Hi I am unable to reverse the binary representation of a number is there an easy way to do it? Please?
Store the representation in a string, then reverse that string. Alternatively, access in reverse a std::bitset of that number.
You mean change 12345 to 54321?
That's not difficult. You should use '%' operator.