c++用+链接字符串是加号两边 要有一个string类型,另外int 类型是不能进行自动转换的,可使用stringstream进行转换例如#includestringstream strm;;string s1="ddd" , s ;int a =78;int b=-458;strm<<s1<<"uu"<<a<<b<<714;strm>>s;//s=strm.str();