I wrote a \'simple\' (it took me 30 minutes) program that converts decimal number to binary. I am SURE that there\'s a lot simpler way so can you show me? Here\'s the code:<
#include #include #define bits(x) (std::string( \ std::bitset<8>(x).to_string() ).c_str() ) int main() { std::cout << bits( -86 >> 1 ) << ": " << (-86 >> 1) << std::endl; return 0; }