is there an easy library function that lets you change from decimal to octal and hexadecimal?

kleinesarschloch

Senior member
Jan 18, 2003
529
0
0
Originally posted by: RobDowneyJr
change a decimal (base 10) to hexidecimal (base 16) or octal (base 8)

those are just numerical notations. a c++ variable is not bound to any particular notation. i'm assuming you want to display a numerical value in one of those notations, so check out the documentation for printf() and its derivatives.
 

kleinesarschloch

Senior member
Jan 18, 2003
529
0
0
Originally posted by: notfred
Why don't people ever say what language they're trying to do things in?

i think that's the least wrong with his post. if i ever formulated a problem like this, i would probably get fired the same day.