title: Running C++ Programs with variable inputs
body: <p>How to run a c++ code say (test.cpp) from command line as:</p>
  
  <blockquote>
    <p>./solve l m</p>
  </blockquote>
  
  <p>where l and m = input variable for test.cpp</p>
  
  <p>solve is the object / Executable file for test.cpp.</p>
  
  <p>I know that i can create a object file with</p>
  
  <blockquote>
    <p>g++ test.cpp -o solve</p>
  </blockquote>
  
  <p>but how do i make  </p>
  
  <blockquote>
    <p><strong>./solve l m</strong></p>
  </blockquote>
  
  <p>work  ??</p>