mayjune's Avatar, Join Date: Jun 2009
Invasive contributor
Quote:
I also didn't know you had plans for wife PROGRAMMING and girlfriend PROGRAMMING, or interracial PROGRAMMING stuff; didn't even know there were such TYPES OF PROGRAMMING as that.
i cant stop laughing....... lmao, jez wish we could do wife/gf hacking lol.... then maybe we could understand how they work hehehe
SaswatPadhi's Avatar, Join Date: May 2009
~ Б0ЯИ Τ0 С0δЭ ~
Quote:
Originally Posted by mayjune View Post
i cant stop laughing....... lmao, jez wish we could do wife/gf hacking lol.... then maybe we could understand how they work hehehe

Wife/GF is the hardest thing to crack, ever.
mayjune's Avatar, Join Date: Jun 2009
Invasive contributor
i agree man, even God gave up on them, who are we
coderzone's Avatar, Join Date: Jul 2004
Team Leader
Will work for free show your desperation and so I would never keep them in my cover letter
HMTahir's Avatar, Join Date: Jul 2009
Newbie Member
Sir G
I M Tahir & I m new member of go4expert
my assignmet is
C++ code of converting binary number into decimal and hexa no into binary
i need u r help
i shell b very thankfull to u for u r this act of kindness

my email addrss is
khan_babay@yahoo.com
Thx
!Newbie!'s Avatar, Join Date: Apr 2009
Ambitious contributor
assignment question posted here
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by HMTahir View Post
Sir G
I M Tahir & I m new member of go4expert
my assignmet is
C++ code of converting binary number into decimal and hexa no into binary
i need u r help
i shell b very thankfull to u for u r this act of kindness

my email addrss is
khan_babay@yahoo.com
Thx
Search the forum and its already there for you to use it.
rothn's Avatar, Join Date: Jun 2009
Newbie Member
I will not code this for you, as it sounds like an assignment, and you need to learn. I will, however, give you a good approach.
A word is made up of 4 hex characters. Each hex character has 4 binary values that represent it.

To convert HEX to DECIMAL:

1) reverse the order of the digits in the hex word (1521 becomes 1251, for example)
2) multiply the current digit by n to the power of 16, where n starts at 0 and ends at 3 (it is incremented with each digit processed)

Here is the step worked out for further detail:

1 * (16^0)
2 * (16^1)
5 * (16^2)
1 * (16^3)

3) add the results of your multiplication together -- you should have the decimal number

Note that I am not directly telling you how to complete this task, as I gave you Hex to Decimal, and you need Hex to Binary and Binary to decimal.

With what I told you, this should be easy.

Good Luck,
rothn
naimish's Avatar
Banned