CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 15

Threaded View

  1. #1
    Join Date
    Feb 2009
    Posts
    34

    I can get rid of an argument in Win32 console but not in....

    My question is:

    If I have this array:

    Code:
    double *x;
    x= new double [5];
    ...if I want to copy this array to "xx" can I do xx=x; ?

    If not, how has to be done?

    If that's right.... I got an error when compiling...

    Code:
     'CMultilatera::f': function call missing argument list; use '&CMultilatera::f' to create a pointer to member
    Multilatera is a class with an "f" function...
    Code:
    double CMultilatera::f (double *z);
    general code:
    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)
    Last edited by Shadowrun; May 13th, 2009 at 05:24 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured