c++ int转string
#include “stdafx.h”
#include
#include
#include
using namespace std;
int main()
{
stringstream strStream;
int a = 100;
float f = 23.5566;
strStream << a << “——“<< f ;
string s = strStream.str();
cout << s << endl;
system(“pause”);
return 0;
}
还没有评论,来说两句吧...