converting decimals(integers) to 32 bit binary digits

hapa_at_1's Avatar
Light Poster
can any one help me i need a C++ code that converts integers enterered by user and it converts it into 32 bit binary numbers
Aztec's Avatar, Join Date: May 2006
Contributor
Here is a simple algorithm for converting decimal numbers to binary using repeated division by 2
http://trunix.org/programlama/cpp/fr...al2binary.html
hapa_at_1's Avatar
Light Poster
thank you
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
You can also refer to Decimal, Hex, octal and binary number inter conversion article.