gpt4 book ai didi

c++ - IntelliJ-CLion : What should I do to use input text file?

转载 作者:太空宇宙 更新时间:2023-11-04 13:05:07 25 4
gpt4 key购买 nike

我想在 CLion IDE 中读取我的 C/C++ 项目中的 .txt 文件。

我想自动执行我在 bash 中运行的命令:

./<executable_file> < input.txt

我在运行/调试配置中编辑了程序参数。

picture

但它不起作用。

最佳答案

如果有人对此仍然感兴趣,在当前日期,CLion 已添加此功能。 Go Edit Configurations(右上角工具栏,项目名称|调试): enter image description here

现在有一个选项:“重定向输入自”。只需单击该文件夹并找到您的输入文件。 enter image description here

关于c++ - IntelliJ-CLion : What should I do to use input text file?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42813641/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com