-
Hexadecimal
Please,can anybody help me!?I need to write a program which will
find hexadecimal numbers in a file.Hexadecimal number begin with
0x,they have 2 characters in hexadecimal code.Every hexadecimal
number write on screen with decimal equivalent.
example:
in file: 0x10 0xVV 0xfe 0x 0A
on screen:
hex dec
10 16
VV error
fe 254
0A 10
Thanks!
-
Here is one algorithm.
-Open file
-*loop through every line
-token spaces and store data segment to map temporary value
-loop through container and validate hex, convert to dec, and store in value
*There are other solutions including file-mapping.
Kuphryn