Formatted and unformatted output capabilities are provided by ostream
. Capabilities include output of standard data types with the stream insertion operator (<<
); output of characters via the put
member function; unformatted output via the write
member function; output of integers in decimal, octal and hexadecimal formats; output of floating-point values with various precision, with forced decimal points, in scientific notation and in fixed notation; output of data justified in fields of designated widths; output of data in fields padded with specified characters; and output of uppercase letters in scientific notation and hexadecimal notation.