|
-
March 29th, 2003, 05:50 PM
#1
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!
-
March 29th, 2003, 08:16 PM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|