delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/13/20:45:16

From: "Andrew D. Jones" <ssgulnIHATESPAM AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: strstream *seem* not to work!
Message-ID: <i2d2qt8dfa24mqatq006vn8jddlr7e4kmu@4ax.com>
References: <3B9F74B4 DOT 467A3C5C AT iolfree DOT ie>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Lines: 42
Date: Thu, 13 Sep 2001 22:34:10 GMT
NNTP-Posting-Host: 24.102.32.191
X-Complaints-To: abuse AT home DOT net
X-Trace: news3.rdc1.on.home.com 1000420450 24.102.32.191 (Thu, 13 Sep 2001 15:34:10 PDT)
NNTP-Posting-Date: Thu, 13 Sep 2001 15:34:10 PDT
Organization: Excite AT Home - The Leader in Broadband http://home.com/faster
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Can you please *not* post in HTML?  Some of use use newsreaders that
don't like HTML.  Plaintext is good, believe you me. :)

-- 
Andrew D. Jones

On Wed, 12 Sep 2001 14:43:42 GMT, Nino Matassa <nino AT iolfree DOT ie>
wrote:

><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
><html>
>Hi,
><p>the code below can be copied/pasted/compiled and so on......
><br>The commented out section at the end is its output. Not what I expected.
>I'm running djgpp under Windows 2000 if that has any relevance. Do you
>have any idea why this code code produces that output?
><br>Any help in understanding this is greatly appreciated.
><br>Thanks.
><br>N.
><p>I'm using gcc version 2.95.3 on Windows2000.
><p>**************************************************************************
><br>/* Exp.cpp */
><p>#include&lt;iostream>
><br>#include&lt;strstream>
><p>#define size 1024
><p>void main(void) {
><br>&nbsp;static char buffer[size];
><br>&nbsp;ostrstream os(buffer, size, ios::app);
><br>&nbsp;os &lt;&lt; "Hello World!" &lt;&lt; endl &lt;&lt; ends;
><br>&nbsp;cout &lt;&lt; os;
><br>}
><p>/*
><br>D:\root\Misc\source\C++>a
><br>0xffffffff
><br>*/
><br>**************************************************************************
><br>--
><br>Nino.
><p>Non illegitimes conturbabunt
><br>&nbsp;
><br>&nbsp;</html>

- Raw text -


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