From: Shijo on
can anyone help to write a program that converts a hexadecimal number
to an decimal number ex:ac8d=44173

From: Bob on
On 30 Jul 2006 03:16:13 -0700, "Shijo" <ca_shijo(a)yahoo.co.in> wrote:

>can anyone help to write a program that converts a hexadecimal number
>to an decimal number ex:ac8d=44173

Yes, but help means that you make an attempt first. You need to
design the program and to try coding it. Since we are a language
group, we want to focus on the language issues of your program. In
addition, we shall point out design, logic and other problems.

Best wishes,

Bob
From: Mike Wahler on

"Shijo" <ca_shijo(a)yahoo.co.in> wrote in message
news:1154254573.729775.236600(a)h48g2000cwc.googlegroups.com...
> can anyone help to write a program that converts a hexadecimal number
> to an decimal number ex:ac8d=44173

Yes we can and will help you, but we won't do it for you.
Post the code of your best attempt, and ask specific
questions. Hints:

If using C, look up standard function 'strtoul()'.

If using C++, look up stream manipulator 'std::hex'
(or you can use 'stroul()').

-Mike