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.
当我以“运行主项目”模式运行我的项目时,我的程序将 .txt 文件写入我的 /home 目录。我发现这非常奇怪,所以我以“调试主项目”模式运行程序,并将 .txt 文件写入项目目录。选项中是否有可以解决此问题的设置,因此两种模式都会将文件写入项目目录?
我试图制作具有相同结果的新项目
Netbeans 中的大多数 C++ 项目都有调试和发布配置。这两者可能有不同的运行程序设置,应该检查其中一个是否指定了“运行目录”。
如果您右键单击项目树的根并选择属性,您会注意到顶部的“配置”下拉菜单允许您在两组设置之间进行切换。