我想在 CLion IDE 中读取我的 C/C++ 项目中的 .txt 文件。
我想自动化我在 bash 中运行的命令:
./<executable_file> < input.txt
我在运行/调试配置中编辑了程序参数。
但它不起作用。
c++ intellij-idea clion
我正在使用VS 2010,我想知道如何在调试时使用标准输入来获取我的c ++程序来读取文件.我知道如何从命令提示符执行此操作,但在调试时则不知道.
基本上我希望它在一个带有cin >>的文件中读取而不是我输入内容 - 但是在调试模式下.
c++ debugging standards input stdio
c++ ×2
clion ×1
debugging ×1
input ×1
intellij-idea ×1
standards ×1
stdio ×1