Skip to main content

Thread: [C++] Convert decimal to hex


does have solution converting decmial hex ?
example,
have
code:
int x = 28 ;
i int or long have equivalent hex i.e
code:
long y = 1c ;
i don't want in string/char[] need math operations on it.

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

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues