Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Visual C++ 2010 中打开具有相对路径的文件?
我以前用来C:\\test.txt打开文件。现在我将文件移动到项目目录中,这样它就可以受到版本控制,其他人也可以打开该文件。但test.txt不起作用。
C:\\test.txt
test.txt
你可能想试试
..\test.txt