title: How to make input part of my code?
body: <p>So I have this maths project where I have to write a program which calculates definite integral of a given function within the given boundaries. I've done this using C++ and CodeBlocks, but now I would like to try and make it possible to input function using cmd when I run my code in CodeBlocks, just like I input boundaries, so I don't have to edit this line of code every time I want to run it for different function. I realised that this would require actually using then this input ( e.g. "sqrt(pow(x,2)-1)" ) as part of the code when entered, and I really don't know how to do this or if it is possible at all, so any help is welcome.
  This the part of the code which handles function:</p>
  
  <pre><code>double Formula(double x)
  {
      double a;
      a = sqrt(x);
      return a;
  }
  </code></pre>