

|
 |
| << Topic |
< Post |
Post 1 of 9 Topic 4066 of 4193
|
Post > |
Topic >> |
Storing Arrays in Maps (Or, alternatively, convert hex to dec)
by Hal Vaughan <hal@[EMAIL PROTECTED]
>
Mar 13, 2008 at 06:59 AM
| I need to store 2 - 4 values that I have in hex in a map. I've tried
storing an int[] in a map and can't make it work. As of now, the only way
I can think of is to store it as a string, like "0x01 0xDF". But then
when
I get it out of the map, I don't see how to convert it to one int for each
specified hex number.
If I could either store an array of 2-4 integers in a map or convert the
hex
strings to integers, it would work. I've also experimented, on the output
end, with sscanf and sprintf, but I don't seem to have them working right.
(Plus I have to convert the string to a char[].)
Thanks for any help on this!
Hal


|
9 Posts in Topic:
|
Hal Vaughan <hal@[EMAI |
2008-03-13 06:59:08 |
|
"Mike Wahler" & |
2008-03-13 06:10:31 |
|
Hal Vaughan <hal@[EMAI |
2008-03-13 13:31:50 |
|
Hal Vaughan <hal@[EMAI |
2008-03-13 13:58:41 |
|
Hal Vaughan <hal@[EMAI |
2008-03-13 14:13:34 |
|
Jerry Coffin <jcoffin@ |
2008-03-17 00:08:33 |
|
Jerry Coffin <jcoffin@ |
2008-03-17 00:13:49 |
|
Jeff Schwab <jeff@[EMA |
2008-03-17 10:17:47 |
|
Jerry Coffin <jcoffin@ |
2008-03-18 07:17:53 |
|
Post A Reply:

|
|
|
|