다음 코드가 있는데 char 문자열을 std 문자열로 변환하는 방법을 알지 못합니다. 누군가 나를 도와 줄 수 있습니까?char 문자열을 std 문자열로 변환하는 방법
char Path[STRING_MAX];
test->getValue(Config::CODE,Path);
size_t found;
cout << "Splitting: " << Path << endl;
found=Path.find_last_of("/");
cout << " folder: " << Path.substr(0,found) << endl;
cout << " file: " << Path.substr(found+1) << endl;
올바르게 표시하려면 코드 4 칸을 들여 씁니다. – Swiss