title: Automated testing of C++ console app in Visual Studio by sending text files to stdin?
body: <p>I am going to take part in a coding contest my University is organizining next week.
  I am only allowed to use C or C++ and I would prefer to use the latter one using Visual Studio 2010.
  For every task there is a text input provided as plaintext to stdin, for example:</p>
  
  <blockquote>
    <p>200 100 10 <br />
    2 11</p>
  </blockquote>
  
  <p>I need a tool which would assist me with running my code with some pre-defined text file as stdin input.</p>
  
  <p>On a unix-based system I would just use something like:</p>
  
  <pre><code>gcc mycode.cpp
  ./mycode.o &lt;test1.in &gt;result1.out
  diff result1.out test1.out
  </code></pre>
  
  <p>Is there any way to reach this in Visual Studio 2010.</p>
  
  <p>Or maybe one could recommend a nice C++ IDE with rich debugging functions which would have something like this "out of the box"?</p>
  
  <p>With best regards,
  Alexander.</p>