SyntaxFix
Write A Post
Hire A Developer
Questions
Old School :-)
std::string str = "H:/recursos/audio/youtube/libre/falta/"; for (int i = 0; i < str.size(); i++) { if (str[i] == '/') { str[i] = '\\'; } } std::cout << str;
Result:
H:\recursos\audio\youtube\libre\falta\