problem in program in c++

dear sir ,

i hope you to help me in this problem

in numerical methods we design program in c++ to solve equations (to find

the roots of equations)

as you know in c++ you determine the form of the equation in the body of

c++ program and then , when you run the program ,you enter the coeiffecient

of the variables of the equation.

but i want to ask how you can design aprogram that when you run it you can

enter the equation (as entrance variable ) and the program accept it (as

variable ) and then you enter the coieffecient of the variable then the program

solve it.

(i mean i ask you to learn me how to design program to find the root of any

equation i need to solve).

please write the full program to me

i will be so greatful if you help me

i wait your answer

mheasen