Passing two-dimensional array address to a function

Discussion in 'C++' started by ehsantl, Aug 29, 2010.

  1. ehsantl

    ehsantl New Member

    Joined:
    Aug 29, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi folks

    I'm trying to do my assignment in c++, I suppose to develope a maze traversal using backtracking algorithm. I have to write a constructor for my Maze with this sign. Maze(**c, int size);which takes a n-by-n two-dimensional character array.

    Can you guide how can pass an array to this constructor? and how can I use it in the function?

    Cheers
    Ethan
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice