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






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

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








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