浮点如何转string字符串string s类型的字符串 float f=1.41 怎么把f放到s里面去?? 谢谢[解决办法]char temp[10]; sprintf(temp, "%f ",f); string str = temp;