[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ProgSoc] C++ Manipulators
Hello gleNN,
I've got a similar problem with C++ Manipulators.
Apparently ofstream class treats " " as end of line as a result the rest
of my string gets chomped!
Can you advice?
HHK
On Wed, 31 May 2000, gleNN wrote:
> Hey,
>
> I'm looking for the 'left' and 'right' manipulators (to do left and
> right alignment of text and numbers) under g++, on SoCS. I've had a look
> in iostream.h and iomanip.h but I cant find them.
>
> e.g.
>
> cout << setw(24) << right << "Hello World!" << endl;
>
> .. should produce ' Hello World!'.
>
> gleNN
>
> --
>
> "We need our handy dandy notebook!" - Steve
>
> -
> You are subscribed to the progsoc mailing list. To unsubscribe, send a
> message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
> If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.
>
-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.