Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::showbase is a stream manipulator to show the number system base. For example, the (hexidecimal) value of '0x11' will be displayed as '0x11'.
The example below shows how to display an integer in hexadecimal, octal and decimal with or without showing the number system base.
#include <iostream> |
Screen output:
The value of x in hex: 0x64 |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.