|
From: Gregor P. <Gre...@dl...> - 2000-12-07 13:29:02
|
OK I got the library and tried it out, but ist doesn't work.
I need to feed needsStringFunc( string name )
so I tried
string name = buffer.str()
which causes my Programm to crash :-(
So the str() method doesn't return the content of buffer as a string?!?
Gregor
Chad Simmons wrote:
> How about this instead..
>
> string my1String = "John";
> string my2String = "apples";
> int myInt = 6;
> strstream buffer;
>
> buffer << my1String << " has " << myInt << " "<< my2String << "!" << endl;
>
> cout << buffer.str();
>
> // Output = John has 6 apples!
>
> Chad Simmons
> _____________________________________________________________________________________
> Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
|