title: Is there a way in which I could get a function as a input ex.:(x^5+x^2+4) and then use the x as a variable in c++?
body: <p>I am trying to make a algorithm in which I need the user to input a function but I do not know how I could use the x from the input as a variable and then do calculations using the function. How could I do that?</p>