have read 'A'.

2. Now you have the select the first and the second Hex. number of the presentation of this letter.

In every programming language you can find a character function (POS or ORD or something else) with

a character parameter. It returns the number of the place in the ASCII table on the given character.I think in C++ you can simple use the character as a digit or somehow to place it in a integer field. Let us suppose you have placed the character in in the field C.

3. To isolate the first hex. digit divide C by 16. So if C is 60 it will return 3

4. To isolate the second hex.digit use MOD function.

60 mod 16 is 12. Try to find MOD function in the library or simply emulate it by subtracting 16 from C.

5. Convert the first and the second number (from 2. and 3.) into hexadecimals. To do this use a table like

Character Number

0 0

1 1

2 2

... ...

9 9

a 10

b 11

c 12

d 13

e 14

f 15

You can use 2 arrays (one character, second integer).

5. Try to figure out if your programming language supports function in the libraries for direct conversion of characters

into hex. digits. This will help you to avoid some of the above steps.

There are also some links to libraries with subroutines doing this like

Try this link

http://www.simtel.net/pub/