Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::noshowbase is a stream manipulator to not show the number system base. For example, the (hexidecimal) value of '0x11' will be displayed as '11'.
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.