fork download
  1. std::string WideCharToMultibyte(const std::wstring& src) {
  2. std::string r(WideCharToMultibyte(CP_UTF8, 0, src.c_str(), src.size(), 0, 0, 0, 0), '\0');
  3. r.resize(WideCharToMultibyte(CP_UTF8, 0, src.c_str(), src.size(), &r[0], r.size(), 0, 0), '\0');
  4. return r;
  5. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: 'string' in namespace 'std' does not name a type
stdout
Standard output is empty