#include <iostream> // std::cout, std::ostream, std::hex
#include <sstream> // std::stringbuf
std::stringbuf tmp_string; 定义stringbuf
std::ostream os(&tmp_string); //定义流名称,关联到stringbuf
os.precision(3); 设置double显示小数位数
os<<std::fixed; 显示全部数字,而非科学记数法