Passing/catching a multidimensional array

This is a discussion on Passing/catching a multidimensional array within the C++ Programming forums, part of the General Programming Boards category; My text tells me how to pass and receive a one-dimensional array pass: myFunction(arrayName) catch: returnType myFunction(type arrayName[]) BUT, how ...

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    121

    Passing/catching a multidimensional array

    My text tells me how to pass and receive a one-dimensional array

    pass: myFunction(arrayName)

    catch: returnType myFunction(type arrayName[])

    BUT, how would I do this with, say, a 2-d array? My text doesn't give such an example.

    Thanks!

  2. #2
    Registered User
    Join Date
    Jun 2006
    Posts
    121
    Nevermind, I found the answer... I recognized it quickly, guess I had just forgotten.

    Thanks anyways

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 07:25 PM
  2. Help -- allocating memory in a multidimensional array
    By jonathan.plumb in forum C Programming
    Replies: 10
    Last Post: 05-20-2009, 11:04 PM
  3. Pointer to multidimensional array
    By ejohns85 in forum C++ Programming
    Replies: 4
    Last Post: 03-24-2009, 11:17 AM
  4. Type and nontype parameters w/overloading
    By Mr_LJ in forum C++ Programming
    Replies: 3
    Last Post: 01-02-2004, 12:01 AM
  5. Help with an Array
    By omalleys in forum C Programming
    Replies: 1
    Last Post: 07-01-2002, 08:31 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21