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

From: "Niklas Pettersson" <npedt97 AT student DOT vxu DOT se (nospam)>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Manipulators
Date: Mon, 17 Apr 2000 16:52:52 +0200
Organization: Lund Institute of Technology, Sweden
Lines: 31
Message-ID: <8df8h1$2ek$1@news.lth.se>
References: <8d7bg8$f57$1 AT nnrp1 DOT deja DOT com>
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!

I have the same version (i think) and the manipulators
works perfectly for me (except left).. Maybe you're using
them in a wrong way. I'll dump some code here of
something that should work...

std::cout << setw(50) << "Hello world\n";


/ Niklas


"Figmo" <rexdesexe AT my-deja DOT com> wrote in message
news:8d7bg8$f57$1 AT nnrp1 DOT deja DOT com...
> I am using delorie g++ version 2.95.2 release 19991024. I try to involke
> io stream manipulators fixed, showpoint, and setw but all I get are
> error messages to the effect that these are undeclared variables. This
> release comes with the header files iostream and iomanip and I use them
> both in my "#include" statements. I have compiled both the new, ANSI way
> with "namespace std" and the old, "header.h" method. They both work, as
> long as I don't involke manipulators. The FAQs/docs I have say nothing.
> Are the new ANSI manipulators implemented in this release and I need to
> tweek my install and/or code or do I need a new release?
> - THANX
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.


- Raw text -


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