c++ aggregate ‘std::stringstream ss’ has incomplete type and cannot be defined 这个问题是使用了stringstream这个类,但没有包含头文件ssteam的缘故 增加#include <sstream>即可解决