<分区>
如何获取可执行路径?在这里,我想考虑系统 native 路径表示。
我知道使用 Qt 是可能的,但这次不是我的选择。 我还没有发现使用 boost 文件系统库执行此操作的任何可能性。有什么建议吗?
是的,看起来像是重复的,C++ 开发一如既往地以其无中生有的能力给人留下深刻印象。
完全同意本·海默斯的观点
So is this what everyone does whenever they want to find the executable's path in C++? I was hoping something as simple-sounding as this would already be implemented in a library like boost.