#include <iostream>
using namespace std;
int main()
{
// Use default width.
cout << "Default format.\n";
cout << "|";
cout << 123.45 << "|" << "\n\n";
// Now, use internal.
cout << "Turning on internal justification.\n";
cout.setf(ios::internal, ios::adjustfield);
cout << "Internal justification in a field width of 12.\n";
cout << "|";
cout.width(12);
cout << 123.45 << "|" << endl;
return 0;
}