转自http://www.cppblog.com/alantop/archive/2007/07/10/27823.html
stringstream通常是用来做数据转换的。
相比c库的转换,它更加安全,自动和直接。