Używanie obiektów
int main() { // Specifying formats with manipulators:
cout << "a number in decimal: "
cout << "in octal: " << oct << 15 << endl;
cout << "in hex: " << hex << 15 << endl;
cout << "a floating-point number: "
cout << "non-printing char (escape): "
manipulatory- zmieniają stan strumienia
cout << "Enter a decimal number: ";
cout << "value in octal = 0"
<< oct << number << endl;
cout << "value in hex = 0x"
<< hex << number << endl;