I am very new to C++ and I want to make a program that converts a binary number (up to seven digets) into a decimal value. Anyone know how I can do this?

Recommended Answers

All 5 Replies

hey just take a look over this link http://www.daniweb.com/code/snippet93.html ...this however change changes the binary code to gray but in middle of the code u will find the binary equivalent code also.
Cheers,
Harsh

Aside from those two snippets you can also find more info by searching the forum for the question - as this question gets asked a lot :) I remember from one thread you can get another 4 code solutions written by people replying to the thread!

one question... can java used for binary coding???

commented: Resurrecting a 5 year thread for this question is unkool -2
commented: One answer - learn how to post first. -2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.