#include <iostream>
#include <sstream>
using namespace std;
int main(void)
{
stringstream ss;
int i=0;
for(i=0;i<=100;i++)
{
ss<<i;
}
string s=ss.str();
cout<<s<<endl;
system("pause");
}
字符串与整型相互转换
最新推荐文章于 2021-08-13 10:31:42 发布