[lug] C++ libraries in Linux

Scott A. Herod herod at interact-tv.com
Tue Sep 18 08:11:20 MDT 2001


Hi,
  I use something like the following:

#include
<strstream>                                                           
string paraNode::toString()
{
    string rtnval;
    strstream buf;
 
    buf << "Paragraph: "
        << ATTR_ALIGN << " = " << _align << ", "
        << ATTR_WRAP_MODE << " = " << _mode
        << ends;
 
    rtnval = buf.str();
    return rtnval;
}


> Can it be true?  There are no converters to go from an int to a string?  Or
> a double to a string?
> 
> --Keith



More information about the LUG mailing list