ios_base& left (ios_base& str);
<<
>>
12345678910
// modify adjustfield using manipulators #include <iostream> // std::cout, std::internal, std::left, std::right int main () { int n = -77; std::cout.width(6); std::cout << std::internal << n << '\n'; std::cout.width(6); std::cout << std::left << n << '\n'; std::cout.width(6); std::cout << std::right << n << '\n'; return 0; }
- 77 -77 -77