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






cout: output 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

1.Set cout: hex and basefield, ios::hex, ios::basefieldSet cout: hex and basefield, ios::hex, ios::basefield