0

How to convert decimal numbers to binary number in c ++

29th Jan 2019, 5:53 AM
Muhammad Aamir Maqbool
Muhammad Aamir Maqbool - avatar
3 Answers
+ 1
https://stackoverflow.com/questions/22746429/c-decimal-to-binary-converting/22746526#22746526 And if you want to convert a number to decimal, hexadecimal, or octal, you have std::dec, std::hex, and std::oct. https://en.cppreference.com/w/cpp/io/manip/hex
29th Jan 2019, 10:00 AM
Zen
Zen - avatar
+ 1
There is an assignment on the Learn section about base conversion, you can view the submissions and learn from others' code. https://www.sololearn.com/learn/4943/?ref=app
29th Jan 2019, 10:30 AM
Ipang
+ 1
Thanks 💞 brother
1st Feb 2019, 6:07 PM
Muhammad Aamir Maqbool
Muhammad Aamir Maqbool - avatar