setbase function — Sets conversion radix
manip_t
setbase(int base)
The setbase
function sets
the conversion radix for a stream. In other words, it performs the
equivalent of stream
.setf(
newbase
, ios_base::basefield)
, in which
newbase
depends on base
, as shown in Table 13-11. Notice that
any value of a base other than 8, 10, or 16 is treated the same as
0
.