User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 402,608 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,294 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 10275 | Replies: 4
Reply
Join Date: Jan 2005
Posts: 7
Reputation: Programmer88 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Programmer88 Programmer88 is offline Offline
Newbie Poster

Converting binary code to decimal value.

  #1  
Jan 5th, 2005
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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2004
Posts: 3,473
Reputation: Dave Sinkula is a glorious beacon of light Dave Sinkula is a glorious beacon of light Dave Sinkula is a glorious beacon of light Dave Sinkula is a glorious beacon of light Dave Sinkula is a glorious beacon of light Dave Sinkula is a glorious beacon of light 
Rep Power: 16
Solved Threads: 138
Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Converting binary code to decimal value.

  #2  
Jan 5th, 2005
Welcome. Have you met Google? Please peruse the announcement.
Reply With Quote  
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,425
Reputation: vegaseat will become famous soon enough vegaseat will become famous soon enough 
Rep Power: 9
Solved Threads: 173
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Solution Re: Converting binary code to decimal value.

  #3  
Jan 5th, 2005
Take a look at the C code snippet at:
http://www.daniweb.com/code/snippet109.html
May 'the Google' be with you!
Reply With Quote  
Join Date: Nov 2004
Location: India
Posts: 57
Reputation: harshchandra is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
harshchandra harshchandra is offline Offline
Junior Poster in Training

Re: Converting binary code to decimal value.

  #4  
Jan 6th, 2005
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
Reply With Quote  
Join Date: Dec 2004
Location: Devon - UK
Posts: 420
Reputation: 1o0oBhP is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: Converting binary code to decimal value.

  #5  
Jan 6th, 2005
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!
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 12:32 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC