Code:int val; cin >> val; // what do i do here so that val takes 12 places and is left aligned? cout << val;
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?
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
anon, thanks for a BIG lol!!
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 . . . *_*