Convert and Display User Inputted Number to Octal and Hexadecimal

How can I convert and display a number the user inputs as octal and hexadecimal?
cout provides flags to set this.

See here:

http://answers.yahoo.com/question/index?qid=20071009223455AAUobDo
Topic archived. No new replies allowed.