is there any expert who could guide me making a C++ program. I want to convert a Decimal number into a Binary, Octal and a Hexadecimal Number using a C++ Built-in Function(if there exist any).
how to convert a decimal no. into a bin, oct & hexa no. using builtin function in C++
Collapse
X
-
Tags: None
-
Originally posted by mshahzadaliis there any expert who could guide me making a C++ program. I want to convert a Decimal number into a Binary, Octal and a Hexadecimal Number using a C++ Built-in Function(if there exist any).
http://www.cppreferenc e.com/io_flags.html
otherwise have a look at this on conversion between number systems
http://en.wikipedia.or g/wiki/Binary_numeral_ system#Conversi on_to_and_from_ other_numeral_s ystems -
Originally posted by mshahzadaliis there any expert who could guide me making a C++ program. I want to convert a Decimal number into a Binary, Octal and a Hexadecimal Number using a C++ Built-in Function(if there exist any).
"%o"-unsigned octal
"%x"-unsigned hexadecimal with lowercase characters
"%X-unsigned hexadecimal with upercase charactersComment
Comment