|
From: Shijo on 30 Jul 2006 06:16 can anyone help to write a program that converts a hexadecimal number to an decimal number ex:ac8d=44173
From: Bob on 30 Jul 2006 06:49 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 30 Jul 2006 11:55 "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
|
Pages: 1 Prev: Keep console window open in Visual Studio 2003? Next: time function |