Results 1 to 5 of 5

Thread: C++ : Use of strstream library

  1. #1
    Join Date
    Dec 2009
    Posts
    23

    C++ : Use of strstream library

    Hi, Everyone. I had learned the C++ language in the college. I had also worked on the several C++ projects. But I do not know much more about the library files. I would like to know about the Use of the strstream library. So, I also would like to know about the strstream library in detailed. I would also like to know about the how could I implement the strstream library in C++ language. Thus, if anyone has the answer then reply me.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    C++ : Use of strstream library

    The strstream can be the class that can specializes output and input with the arrays of characters in the memory. With a previously allocated an array of characters by associating the object you can create an strstream object. Just as you could to another type of stream, You can apply other operations to it, read input from it, write output to it. i hope you understand the strstream library from the above explanation.

  3. #3
    Join Date
    Nov 2005
    Posts
    1,323

    Re: C++ : Use of strstream library

    The strstream library can be the header file which can be described as with extension ".h" such as the <#include strstream.h>. The following can be the list of classes that can be associated with the strstream library can be as :
    Code:
    1. strstreambuf Class :
    2. istrstream Class :
    3. ostrstream Class : 
    4. strstream Class :

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Use of strstream library

    I think that the class strstream can provides functionality to write and read to an array in the block of memory. To control the array that can be associated with the class strstream, uses a private strstreambuf object . The class strstream can inherits from the basic iostream library. Then, It can use all the unformatted and formatted intput and output functions.

  5. #5
    Join Date
    Feb 2008
    Posts
    1,852

    C++ : Use of strstream library

    According to my knowledge the strstream can be used for defining several iostreams classes which can calculate in the given block of memory character sequences. The class can be comes under the namespace std. For example :
    Code:
    namespace std 
    {
    class strstreambuf;
    class istrstream;
    class ostrstream;
    class strstream;
    };

Similar Threads

  1. Replies: 8
    Last Post: 18-04-2012, 04:23 AM
  2. Replies: 3
    Last Post: 26-03-2012, 03:25 PM
  3. Replies: 6
    Last Post: 03-07-2011, 10:20 PM
  4. Replies: 4
    Last Post: 13-04-2011, 10:35 AM
  5. Replies: 4
    Last Post: 28-12-2010, 08:38 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,964,789.58027 seconds with 16 queries