input value of f(x)

I want to write a C++ program for bisection method where I want to ask the user to input the value of f(x)(mathematical function).I have no idea where to store that value.
can anyone help please.
you have to learn c/c++ first. don't except any one act as a coder for you.
Topic archived. No new replies allowed.