qtd
05-04-2006, 12:10 AM
Hi everyone!
I have a problem with my program using a routine of NR. My program uses frprmn. As you know, this routine has two parameters: func and dfunc. Because I have written a class in C++, I decided to write func and dfunc as two non-static member functions. But when I passed two parameter for frprmn, there were many error in compiling. I know that I am dealing with pointer to member function in C++ (frankly, I don’t understand very much about pointer to member function). Frprmn use many function which’s parameters are pointer to func and dfunc. This problem is actually too difficult for me to deal with. I have tried many times but it have been exist. What should I do? If you met this obstacle and you solved it, please help me.
PS: If you can, please give to me a detailed solution.
I have a problem with my program using a routine of NR. My program uses frprmn. As you know, this routine has two parameters: func and dfunc. Because I have written a class in C++, I decided to write func and dfunc as two non-static member functions. But when I passed two parameter for frprmn, there were many error in compiling. I know that I am dealing with pointer to member function in C++ (frankly, I don’t understand very much about pointer to member function). Frprmn use many function which’s parameters are pointer to func and dfunc. This problem is actually too difficult for me to deal with. I have tried many times but it have been exist. What should I do? If you met this obstacle and you solved it, please help me.
PS: If you can, please give to me a detailed solution.