thnk u chervil, but i don't know were would i put the setw() by the way. Would you mind making a simple code for it... so far this is the code for left justified one:
Note that setw() resets after each use, unlike most other manipulators. If you use (e.g.) setfill() or setprecision(), the value applies until you change it again.
Andy
PS As it looks like you're new here...
Please use code tags --> the <> button below the new post box or to the right of the post edit box. As well as looking nice, it provides line numbers which make it easier to refer to posted code.