How to clear a std::string buff.clear()?
I have been trying to clear a buffer which is of type std::string
I tried buf.clear(); and buf.erase(); to no avail....
And also can two std::string be concatenated like this
buff += tempbuff;?
I don't know why the buff is always empty while I read data off the
serial port using read API. tempbuff has somethin'! Any comments?
Last edited by lucky6969b; 03-16-2006 at 08:20 PM.