<分区>
Possible Duplicate:
How to convert a number to string and vice versa in C++
如何在 C++ 中将整数值转换为 string
?
这是我试过的:
for(size_t i = 0;vecServiceList.size()>i;i++)
{
if ( ! vecServiceList[i].empty() )
{
string sService = "\t" + i +". "+ vecServiceList[i] ;
}
}
这里是错误:
invalid operands of types 'const char*' and 'const char [3]' to binary 'operator+'