请教一下 string alph;char getchar[4]={'a','b','c'}; alph.assign( getchar); CString.format("%s", alph.c_str());
怎么将string类型转 化成CString类型 ?
// TODO: Add your control notification handler code here std::wstring aa = L"asdfdsafdsafdsa"; CString temp; temp.Format(_T("%s"), aa.c_str());
string alph;char getchar[4]={'a','b','c'};cout<<alph<<endl;
CString.format("%s", alph.c_str());