formatted output in pattern in c++ code example
Example: c++ formatting
cout << setw(10) << "ten" << "four" << "four" << '\n';
// Display ten fourfour
cout << setfill('-') << setw(80) << "-" << '\n';
// Displays 80 "-"
cout << setw(10) << "ten" << "four" << "four" << '\n';
// Display ten fourfour
cout << setfill('-') << setw(80) << "-" << '\n';
// Displays 80 "-"