title: cannot compile c++ programs with input and output in eclipse
body: <p>Whenever I try to build C++ programs that involve I/O, I get errors in Eclipse.</p>
  
  <pre><code>02:19:02 **** Incremental Build of configuration Debug for project SecondProject ****
  make all 
  Building target: SecondProject
  Invoking: GCC C++ Linker
  g++  -o "SecondProject"   
  g++: fatal error: no input files
  makefile:45: recipe for target 'SecondProject' failed
  compilation terminated.
  make: *** [SecondProject] Error 1
  </code></pre>
  
  <p>It compiles just fine for other C++ programs that don't require user input.</p>
  
  <p>However, I can compile just fine when I use the command line without an issue. Why is this happening? Is there a fix for it?</p>