Fill space with ? : hexadecimal « Data Types « C++ Tutorial






#include <iostream>
#include <iomanip>
using namespace std; 

int main(void){
   cout << hex << 100 << endl;
   cout << setfill('?') << setw(10) << 2343.10 << endl;
 }








2.15.hexadecimal
2.15.1.Show the base in hexadecimal
2.15.2.Convert hex number to integer
2.15.3.Fill space with ?