delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/11/17:45:39

From: "Niklas Pettersson" <npedt97 AT student DOT vxu DOT se (nospam)>
Newsgroups: comp.os.msdos.djgpp
Subject: left adjustment with iomanip
Date: Tue, 11 Apr 2000 16:29:40 +0200
Organization: Lund Institute of Technology, Sweden
Lines: 19
Message-ID: <8cvctg$nj1$1@news.lth.se>
NNTP-Posting-Host: npedt97.univ.vxu.se
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello!

How can I can text left adjusted in Standard C++ way?

ex

cout << setw(50) << "Hello World";

will work but print things right adjusted, maybe

cout << left << setw(50) << "Hello world";

but DJGPP won't let this pass...

/ Niklas




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019