<p>I want to know what's the difference between string and stream in c++, and what's stringstream?</p>

Very Informally: A string is a collection of characters, a stream is a tool to manipulate moving data around. A string stream is a c++ class that lets you use a string as the source and destination of data for a stream.