如何在运行程序时指定Cevelop / EclipseC / C ++的标准输入?

时间:2018-02-06 18:50:29

标签: eclipse-cdt cevelop

我目前的输入文件是用C ++代码硬编码的:

     constexpr auto SELECTED_COLLEGES {"rva-ceeb-working.txt"};
     std::ifstream ifs {SELECTED_COLLEGES, std::ios::in};

我打算更改代码以使用标准输入。当我从命令行运行程序时,我将文件指定为:

     $ aptcp <rva-ceeb-working.txt

如何告诉Cevelop / EclipseC / C ++何时运行程序以使用rva-ceeb-working.txt进行标准输入?

Cevelop C++ IDE
Version: 1.8.0-201707131430

Eclipse C/C++ Development Tools
Version: 9.3.0.201706122201
Build id: @build@

Eclipse Help
Version: 2.2.100.v20170612-0950
Build id: I20170612-0950

OS: Linux, v.4.10.0-37-generic, x86_64 / gtk 3.22.11

1 个答案:

答案 0 :(得分:0)

运行&gt;运行配置...&gt;常见&gt;输入文件

enter image description here