C++中将数字转换成string类型

#include <iostream> #include <vector> #include <string> using namespace std; ios int main()spa { int i = 54; string str; str = to_string(i);//将int转换成string cout << str << endl; printf("str = %s\n", st
相关文章
相关标签/搜索