#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Need to return a double pointer to a fuction.


    double *Row :: getData()
    {
    double *newRow = new double[size];

    for(int i =0; i<size; i++)
    {
    newRow[i] = dArray[i];
    }

    return newRow;
    }


    ??This does not work for some reason
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,392
    Rep Power
    1871
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    ???


    Uhm???

IMN logo majestic logo threadwatch logo seochat tools logo