阅读背景:

C++: How to call a member function pointer that is a member of the same class?

来源:互联网 

I'm trying to implement more flexibility in my numerics by allowing me to choose different forms of a mathematical function and vary their parameters through instantiating them as objects of a certain class. That class includes certain mathematical functions I may choose plus parameters that I can vary. The constructor of the class sets a member function pointer in the class to a member function according to what mathematical function I want. I want to solely use the pointer to call whatever function it points to by directly using the pointer in my routine. I'm trying to implement more flexibility in my




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: