+ 1
Binary Code
How I can calculate the binary code of a number in c++ and output them?
1 ответ
+ 7
You don't have to do it manually, C++ already has an utility specifically designed for the purpose
https://en.cppreference.com/w/cpp/utility/bitset
http://www.cplusplus.com/reference/bitset/bitset/