lundi 16 septembre 2019

how to return function from function

About the title, I know that returning function is impossible.

I need to create function which will return pointer to another function as a result so that i could write something like f(n)(v) in main. I am beginner in this programming stuff so I could really use some help.

For example "make function of vector v that, when called returns a function on integer n where that function calculates p(n) where p is polynom with coefficients from vector v", I think I could understand everything through this example.

Aucun commentaire:

Enregistrer un commentaire