Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::hex is a stream manipulator to system the number system to hexadecimal.
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.