From: "Niklas Pettersson" Newsgroups: comp.os.msdos.djgpp Subject: Re: stringstreams? Date: Thu, 2 Mar 2000 14:50:05 +0100 Organization: Lund Institute of Technology, Sweden Lines: 63 Message-ID: <89lrj3$b64$1@news.lth.se> References: <89lqmu$atf$1 AT news DOT lth DOT se> 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 I found a nonstandard header file that does the job.. Wrapped it in a class to support the functions that I needed.. I'm just planning to use this until the standard class is included in DJGPP. Any comments on the code? / Niklas #include #include #include class istringstream_wrapper { public: istringstream_wrapper(string s); bool operator>>(string& dest); private: istrstream non_standard_string_stream; }; istringstream_wrapper::istringstream_wrapper(string s) : non_standard_string_stream(s.c_str()) { } bool istringstream_wrapper::operator>>(string& dest) { return ( non_standard_string_stream >> dest ); } int main() { istringstream_wrapper ist(a); string w; while (ist >> w) cout << w << endl; } "Niklas Pettersson" wrote in message news:89lqmu$atf$1 AT news DOT lth DOT se... > Hello! > > Does DJGPP support the stringstreams that are described in standard C++? > > #include > > doesn't seem to work... > > Thanks > > / Niklas > > >