int i = 5; string str ("my ");
#include <iostream> #include <string> using namespace std; int main() { int i=5; char temp[200]; string str="my"; itoa(i,temp,10); string strlast=str+temp; cout<<strlast<<endl; }
64,661
社区成员
250,488
社区内容
加载中
试试用AI创作助手写篇文章吧