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.
我通过双击文件来运行应用程序,因此 getcwd API 将运行路径作为根目录。但我正在从不同的路径运行应用程序。如何在 linux c++ 中获取运行应用程序的正确路径。请帮助提前谢谢