Can someone give me an algorithm to convert binary to decimal format? I've been trying for days to get one to work and I can't find one to work. Thanks are greatly given to any solutions.
This is a discussion on Damn binary to decimal algorithm within the C++ Programming forums, part of the General Programming Boards category; Can someone give me an algorithm to convert binary to decimal format? I've been trying for days to get one ...
Can someone give me an algorithm to convert binary to decimal format? I've been trying for days to get one to work and I can't find one to work. Thanks are greatly given to any solutions.
First of all, people on this board don't generally just write the code for someone else. If you post what you have that you can't get to work, then we'll try to help.
Second, you could probably search the board and actually find an algorithm anyways.
"Think not but that I know these things; or think
I know them not: not therefore am I short
Of knowing what I ought."
-John Milton, Paradise Regained (1671)
"Work hard and it might happen."
-XSquared
do you understand binary? if so, the algorithm should be simple. (if not, you're kinda stuffed as a programmer )
break it down into steps, and then post where you're having trouble.
"I saw a sign that said 'Drink Canada Dry', so I started"
-- Brendan Behan
Free Compiler: Visual C++ 2005 Express
If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?