(x是目标)
int转string 用 to_string(x)
string转int 用 atoi(x.c_str())
#include<iostream>
#include<stdio.h>
#include<string>
//# include <stdlib.h>
using namespace std;
int main()
{
string a = "123";
int a_temp = atoi(a.c_str());
cout << a_temp;
///
cout << endl;
///
int b = 456;
string b_temp = to_string(b);
cout << b_temp;
return 0;
}