C++中char和int转化
#include <iostream>#include <windows.h>#include <cstring>using namespace std;int main() { char s1[10] = "wayne"; char s2[10]; int n = 10; itoa(n, s2, 10); strcat(s1,s2); cout &