Re: Temporary file with streams

Discussion in 'C++' started by Jennifer Mauritz, Nov 23, 2004.

  1. "Rob Williscroft" <> schrieb im Newsbeitrag
    news:Xns95A9CF9ED957FukcoREMOVEfreenetrtw@130.133.1.4...
    > std::streambuf aka std::basic_streambuf< char > only has a default
    > constructor and it is protected.
    >
    > #include <iostream>
    > #include <sstream>
    >
    > int main()
    > {
    > std::eek:stringstream ss;
    >
    > ss << "hello world";
    >
    > std::cout << ss.str() << '\n';
    > }


    Excellent!
    Exactly what I looked for. And so easy...

    Jenny
     
    Jennifer Mauritz, Nov 23, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul L
    Replies:
    2
    Views:
    335
    Paul L
    Apr 11, 2005
  2. Shea Martin

    Multiple streams per file

    Shea Martin, Aug 16, 2005, in forum: Java
    Replies:
    4
    Views:
    1,189
    Mike Schilling
    Aug 17, 2005
  3. Marc Cromme
    Replies:
    1
    Views:
    2,567
    Jorge L Rivera
    Dec 2, 2003
  4. Replies:
    7
    Views:
    3,223
    James Kanze
    Feb 12, 2008
  5. Lin Jingxian
    Replies:
    2
    Views:
    95
    Tad McClellan
    May 9, 2005
Loading...

Share This Page