1.char转化为string
//char转化为string
string str;
stringstream stream;
stream << mode;
str = stream.str();
2.string转化为char
string str = "wed";
char* ss = str.c_str();
3.char转化为int
char* mode = {3};
int m = atoi(mode);
4.char转化为long
int m = atol(mode);
5.char转化为long long
int m = atoll(mode);
6.char转化为double
int m = atof(mode);