| nana22g (1) | |
|
I am using a function like this: double f (double M, void *l) { f_params ¶ms= *reinterpret_cast<f_params *>(l); return (log(1./((interpol(M)) * params.G_F))); } I am calling this function in the main program like f (14, ?) I don't know what to write in the ? space. I am using, f_params ¶ms= *reinterpret_cast<f_params *>(l); so that I may recall the value of params.G_F which is in a loop in the main program that is i am changing the value of params_G_F in a loop. But I am not getting how to write this function in the main program as I don't know what to write for '?' | |
|
|
|
| EssGeEich (681) | |||||||
Should be one of those:
You can also choose to pass in an actual f_params pointer or variable:
| |||||||
|
Last edited on
|
|||||||