Ooops! I wrote string instead iostream.h, it is included (both are) and
doesn't work, neither using namespace std; global or local.
Daniel Glenfield escribió:
> Yuo need #include <iostream>
> then
> using namespace std;
> (make this local to main() if possible).
>
> >From: carlos GARCÍA DEL MONTE <cg...@wo...>
> >To: Dev-C++ mailing list <dev...@li...>
> >Subject: [Dev-C++] sstream does not cout.
> >Date: Mon, 29 Apr 2002 18:01:58 +0200
> >
> >include sstream and string, etc
> >using namespace std;
> >
> >(o)stringstream ostri;
> >string cadena = "wekrkrk rjgjtgtkh\nefrjjf";
> >
> >ostri << cadena;
> >(ostri.str(cadena) this line was a trial which did not work)
> >cout << ostri.str();
> >return
> >
> >The output: nothing at all.
> >With debugger I see that ostri has loaded in it the string cadena, but
> >the output doesn't happen.
> >This works in Borland and cygwin, but in mingw32 with dev I don't find
> >the way. I upgraded a couple of months ago the compiler, for installing
> >allegro. It neither work if I substitute with the sstream from cygwin or
> >from Borland C++ 5.5 (the free one)
> >
> >
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|