Message from C, C++ discussions

January 2020

— It is


So, Just as cout is used as a stream between the program and the stdout, stringstream acts as stream between what 2 things?

— Program and string variable

— But isn't the string variable a part of the program?

— So? Not everything in program goes in cout

— Cout will copy the content of a variable into the stream and then the stream will feed it to the stdout

Can you describe stringstream in those terms for me?

Message permanent page

— Base nbj = obj;

This is not copy assignment?

— Sstream copies variables to internal string and returns a copy of it when one calls str()

— It is copy construction, not assignment

— And the return of str() is string?

— Https://

— Yes