可以答疑吗? 第一个专题 1291 HDUClosing Ceremony of Sunny Cup可以给个思路吗?想不出好的方法
The article is good. But it lacks of some in-depth discussions, such as how buffered/unbuffered stream constructed/used/typical usage, what's the relationship/ownership between stream and streambuf,..., etc.
Futher, I doubt that:
ostrstream myString;
mystring << "this is a test" << ends;
sp = myString.str(); // Get a pointer to the string
The ends "manipulator" adds the necessary terminating null character to the string.
Is above conclusion is correct? and why??