4 ms·
One of the many problems is the need to escape it in C/C++ code - like LPSTR path = "C:\\Program Files"; They really should fix it. Better late than neve
by ape4 2y ago
One of the many problems is the need to escape it in C/C++ code - like
LPSTR path = "C:\\Program Files";
They really should fix it. Better late than never.
- Tempest1981 2y agoOr use C++ raw string literals and experience inner peace: https://www.geeksforgeeks.org/raw-string-literal-c/ https://www.geeksforgeeks.org/raw-string-literal-c/
- TillE 2y agoOr use fs::path with the / operator. If you're doing anything with file paths in C++, that class is a godsend. https://en.cppreference.com/w/cpp/filesystem/path https://en.cppreference.com/w/cpp/filesystem/path
- paulmooreparks 2y agoOr just use '/' if you're talking directly to the API and not the shell or cmd.exe.