So i need to use two arrays in my program. A is an array of datapoints (values x takes). and B is an array of functions of x. Both are to be entered by the user(from the keyboard).
My problem is in reading in the elements of B. For example, A={1,2,3} and B={sin(x), x+5} where x is supposed to take in all values of A. I am relatively new to c++ and am not sure of the best way to do this. I read somewhere about Parsing but it seemed a bit complicated. Can it be done without parsing?