Thread: [C++] Convert decimal to hex
does have solution converting decmial hex ?
example,
have
i int or long have equivalent hex i.ecode:int x = 28 ;
i don't want in string/char[] need math operations on it.code:long y = 1c ;
sorry i'm not sure quite mean. in c (which c++ should handle valid subset) can declare or assign valid hex value integer variable
i.e.
long y = 0x1c;
should valid
sorry if have misunderstood needs.
bouncingwilf
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] [C++] Convert decimal to hex
Ubuntu
Comments
Post a Comment