Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main()
- {
- for (int i = 0; i < 5; ++i)
- cout <<'|' << setw(10) << setiosflags(ios_base::right) << "word1"
- << setw(5) << '|' << setw(10) << "word2" << setw(5) << '|' << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment