摘要:
1. char*->string(1)直接转换const char* nodename;string temp = nodename;string temp2(nodename);2.wchar_t*->wstring(1)直接转换const wchar_t* nodename;wstring temp = nodename;wstring temp2(nodename);3. string->char* wstring->char*方法一:(1)将wstring.c_str()转为wchar_t*方法二:(1)将string.c_str(),wstring.c_str 阅读全文