Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8666

Re: reading a file into std::string

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Bo Persson" <bop@gmb.dk>
Newsgroups comp.lang.c++
Subject Re: reading a file into std::string
Date Thu, 11 Aug 2011 12:51:10 +0200
Lines 19
Message-ID <9ahqgnFlk2U1@mid.individual.net> (permalink)
References <4e3fe183$0$316$14726298@news.sunsite.dk> <cone.1312811905.617876.25291.500@monster.email-scan.com> <cone.1312812316.772351.25291.500@monster.email-scan.com> <j1pgkl$q92$1@dont-email.me> <4e40c1f8$0$310$14726298@news.sunsite.dk> <j1qj58$ue4$1@dont-email.me> <4e40d7a6$0$310$14726298@news.sunsite.dk> <j1rnh3$fo$1@dont-email.me> <4e4275ed$0$306$14726298@news.sunsite.dk> <pan.2011.08.11.07.57.41.711000@nowhere.com>
X-Trace individual.net vKEZObfz9s7WYMuo1b1yQgEvG2/VWfQA7y9KiZavIyFQD7hn+r
Cancel-Lock sha1:E5PuNTYSYQR2ZXtPizRlr5D+Di8=
X-Priority 3
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.5931
X-RFC2646 Format=Flowed; Original
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.6109
X-Antivirus avast! (VPS 110811-0, 2011-08-11), Outbound message
X-Antivirus-Status Clean
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:8666

Show key headers only | View raw


Nobody wrote:
> On Wed, 10 Aug 2011 12:13:33 +0000, arnuld wrote:
>
>> That is strange. I thought both <istream> and <ostream> were
>> children of parent class <iostream> and they will inherit
>> std::endl from <iostream>.
>
> <istream>, <ostream> and <iostream> are headers, not classes,
> although classes with those names exist.
>
> Also, std::endl() is a function, not a method.

And even better (or worse?) is that iostream inherits from both 
istream and ostream, not the other way round.


Bo Persson

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

reading a file into std::string arnuld <sunrise@invalid.address> - 2011-08-08 13:15 +0000
  Re: reading a file into std::string Marc <marc.glisse@gmail.com> - 2011-08-08 13:40 +0000
  Re: reading a file into std::string Sam <sam@email-scan.com> - 2011-08-08 08:58 -0500
    Re: reading a file into std::string Sam <sam@email-scan.com> - 2011-08-08 09:05 -0500
      Re: reading a file into std::string red floyd <no.spam.here@its.invalid> - 2011-08-08 13:23 -0700
        Re: reading a file into std::string arnuld <sunrise@invalid.address> - 2011-08-09 05:13 +0000
          Re: reading a file into std::string red floyd <no.spam.here@its.invalid> - 2011-08-08 23:12 -0700
            Re: reading a file into std::string arnuld <sunrise@invalid.address> - 2011-08-09 06:45 +0000
              Re: reading a file into std::string red floyd <no.spam.here@its.invalid> - 2011-08-09 09:26 -0700
                Re: reading a file into std::string arnuld <sunrise@invalid.address> - 2011-08-10 10:58 +0000
                Re: reading a file into std::string "Bo Persson" <bop@gmb.dk> - 2011-08-10 16:19 +0200
                Re: reading a file into std::string red floyd <no.spam.here@its.invalid> - 2011-08-10 10:06 -0700
              Re: reading a file into std::string red floyd <no.spam.here@its.invalid> - 2011-08-09 09:28 -0700
              Re: reading a file into std::string red floyd <no.spam.here@its.invalid> - 2011-08-09 09:33 -0700
                Re: reading a file into std::string arnuld <sunrise@invalid.address> - 2011-08-10 12:13 +0000
                Re: reading a file into std::string Nobody <nobody@nowhere.com> - 2011-08-11 08:57 +0100
                Re: reading a file into std::string "Bo Persson" <bop@gmb.dk> - 2011-08-11 12:51 +0200
                Re: reading a file into std::string Nobody <nobody@nowhere.com> - 2011-08-12 05:00 +0100
      Re: reading a file into std::string Nana J. Osei <mppccf0987@att.net> - 2011-08-13 23:18 +0000
        Re: reading a file into std::string Sam <sam@email-scan.com> - 2011-08-13 20:58 -0500
    Re: reading a file into std::string Juha Nieminen <nospam@thanks.invalid> - 2011-08-09 11:26 +0000
      Re: reading a file into std::string Marc <marc.glisse@gmail.com> - 2011-08-09 12:54 +0000
        Re: reading a file into std::string Juha Nieminen <nospam@thanks.invalid> - 2011-08-09 16:33 +0000
          Re: reading a file into std::string Marc <marc.glisse@gmail.com> - 2011-08-09 16:47 +0000
            Re: reading a file into std::string red floyd <no.spam.here@its.invalid> - 2011-08-09 11:27 -0700
              Re: reading a file into std::string Joshua Maurice <joshuamaurice@gmail.com> - 2011-08-11 15:34 -0700
                Re: reading a file into std::string Juha Nieminen <nospam@thanks.invalid> - 2011-08-12 05:47 +0000
      Re: reading a file into std::string arnuld <sunrise@invalid.address> - 2011-08-09 12:57 +0000
        Re: reading a file into std::string Joshua Maurice <joshuamaurice@gmail.com> - 2011-08-11 15:40 -0700
  Re: reading a file into std::string Jean-Luc Romano <jl_post@hotmail.com> - 2011-08-12 11:28 -0700
    Re: reading a file into std::string Lynn McGuire <lmc@winsim.com> - 2011-08-12 15:56 -0500

csiph-web