cout.setf(ios::showbase)
#include <iostream> using namespace std; int main(void) { cout.setf(ios::hex); cout << 100; cout.setf(ios::showbase); cout << 100; }