cout: output hex : cout hex « Console « C++
- C++
- Console
- cout hex
cout: output hex

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
cout << hex << 100 << endl;
cout << setfill('?') << setw(10) << 2343.0;
return 0;
}
Related examples in the same category