C++ 字符串前面加L,表示转成宽字符,
std::wstring width = L"test" ;
但是如果是一个变量字符串,我在函数里面怎么引用这个变量
void test(std::string str){
std::wstring width = L str ;///???
//DO SOMESING
}
C++ 字符串前面加L,表示转成宽字符,
std::wstring width = L"test" ;
但是如果是一个变量字符串,我在函数里面怎么引用这个变量
void test(std::string str){
std::wstring width = L str ;///???
//DO SOMESING
}