Data type for hexadecimal numbers
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
does anyone know how to store hexadecimal numbers? cwhich data types can store hex numbers in the form 0xffff1234 and let the compiler readily read it as a hex number and not as a string. is dword such a data type? :-D
There's no difference between hexadecimal and decimal numbers at all (for a compiler). Store it as a DWORD or a unsigned int and uses formatting functions or streams with hex manipulator when you need a textual representations of the number. Best regards, ----------- Igor Soukhov (Brainbench/Tekmetrics ID:50759) igor_soukhov@yahoo.com | ICQ:57404554 | http://siv.da.ru