CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 2.26 seconds.

  1. Replies
    5
    Views
    1,842

    Re: Need Help with 2D arrays and functions

    You pass the int** just like you did in the fillArray and showArray functions. You also need to pass the number of rows and columns.


    void find_greatest_product (int** a, int rows, int cols)
    ...
  2. Replies
    5
    Views
    1,842

    Re: Need Help with 2D arrays and functions

    You need to destroy the array at the end. Without that, you have a memory leak, and you also won't show your teacher you know how to dispose of the allocated memory.
    Aren't you just supposed to...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured