943,981 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 18617
  • C++ RSS
Jan 5th, 2005
-2

Converting binary code to decimal value.

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Programmer88 is offline Offline
7 posts
since Jan 2005
Jan 5th, 2005
0

Re: Converting binary code to decimal value.

Welcome. Have you met Google? Please peruse the announcement.
Team Colleague
Reputation Points: 2780
Solved Threads: 312
long time no c
Dave Sinkula is offline Offline
4,790 posts
since Apr 2004
Jan 5th, 2005
0

Re: Converting binary code to decimal value.

Take a look at the C code snippet at:
http://www.daniweb.com/code/snippet109.html
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Jan 6th, 2005
0

Re: Converting binary code to decimal value.

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
Reputation Points: 7
Solved Threads: 1
Junior Poster in Training
harshchandra is offline Offline
68 posts
since Nov 2004
Jan 6th, 2005
0

Re: Converting binary code to decimal value.

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!
Reputation Points: 16
Solved Threads: 6
Posting Pro in Training
1o0oBhP is offline Offline
445 posts
since Dec 2004
Mar 3rd, 2010
-3
Re: Converting binary code to decimal value.
one question... can java used for binary coding???
Reputation Points: 6
Solved Threads: 0
Newbie Poster
pampres is offline Offline
1 posts
since Mar 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC