docs: "Output stream formatting" chapter updated

This commit is contained in:
Mateusz Pusz
2023-11-30 09:27:43 +01:00
parent 29c83c0d84
commit 5bb4e829bb

View File

@@ -81,7 +81,8 @@ associated with this quantity.
### Output stream formatting ### Output stream formatting
Only basic formatting can be applied for output streams. It includes control over width, fill, Only basic formatting can be applied for output streams. It includes control over width, fill,
and alignment: and alignment of the entire quantity and formatting of a quantity numerical value according
to the general C++ rules:
```cpp ```cpp
std::cout << "|" << std::setw(10) << 123 * m << "|\n"; // | 123 m| std::cout << "|" << std::setw(10) << 123 * m << "|\n"; // | 123 m|