Code:int val;
cin >> val;
// what do i do here so that val takes 12 places and is left aligned?
cout << val;
Printable View
Code:int val;
cin >> val;
// what do i do here so that val takes 12 places and is left aligned?
cout << val;
Code:#include <iomanip>
// . . .
cout << left << setw(12) << val;
I wonder if there is more than one person using this account? :)
anon, thanks for a BIG lol!! :D
in other thread i tried to delete it, but could not found the delete option, so i replied to my own post, just to ridicule myself.
in this thread i asked this question, when i was really frustrated, even after looking at cpp reference, i could not find how to do this, so i posted the question here, but after some time, with a little luck, i got the answer, i posted here, just in case . . . *_*