cout: setbase(16) : cout base « Development « C++ Tutorial






#include <iostream.h>
#include <iomanip.H>

main(void)
{
       long n = 10000;
       cout << setbase(16) << n;
       return 0;
}
2710








5.3.cout base
5.3.1.cout: setbase(16)
5.3.2.cout: setbase(8)
5.3.3.cout: setbase(10)