title: Code::blocks, define default input
body: <p>I want to execute in Code::blocks  IDE program providing standard input. </p>
  
  <p>Say </p>
  
  <pre><code>                                                                                              #include &lt;iostream&gt;
  #include &lt;cmath&gt;
  
  using namespace std;
  
  int main()
  {
      double a;
      double b;
  
      cout &lt;&lt; "Side one\n";
      cin &gt;&gt; a;
      cout &lt;&lt; "Side two\n";
      cin &gt;&gt; b;
  
      cout &lt;&lt; "Result :" &lt;&lt; sqrt(a*a + b*b) &lt;&lt; endl;
  }
  </code></pre>
  
  <p>With arguments "a" and "b"  , provided in file:</p>
  
  <p>Say:</p>
  
  <pre><code>2 4
  </code></pre>
  
  <p>I could do that in bash, compiling and then:</p>
  
  <pre><code>"./my_compiled_program &lt; ./myinput"
  </code></pre>
  
  <p>I simply want to have, file with argument (standard input) in code::blocks.</p>
  
  <p>How can I do this? 
  PS: The "set program's arguments" unfortunately don't works<img src="https://i.stack.imgur.com/lBL3t.png" alt="Set program&#39;s argument"></p>