My question is:
If I have this array:
...if I want to copy this array to "xx" can I do xx=x; ?Code:double *x; x= new double [5];
If not, how has to be done?
If that's right.... I got an error when compiling...
Multilatera is a class with an "f" function...Code:'CMultilatera::f': function call missing argument list; use '&CMultilatera::f' to create a pointer to member
general code:Code:double CMultilatera::f (double *z);
Code:double ynewlo; double *start; ... ... ynewlo = f ( start ); nelmin ( f, n, start, xmin, &ynewlo, reqmin, step, >>> line with error konvge, kcount, &icount, &numres, &ifault );
I know there should be 1 argument when calling "f", but code worked correctly when I used it in a Win32 console without any classes at all. Problem came when I converted it to add classes.
PD: "nelmin" function is something from an external API so I dont' know what arguments to pass.. (I copied that problematic line as I was told in documentation)![]()




Reply With Quote