Passing a pointer representing a 2D array to a function in C++

后端 未结 5 813
别那么骄傲
别那么骄傲 2020-11-30 06:01

http://www.neilstuff.com/guide_to_cpp/notes/Multi%20Dimension%20Arrays%20and%20Pointer%20Pointers.htm

According to this site, I should be able to use the following c

5条回答
  •  死守一世寂寞
    2020-11-30 06:45

    double ** p_stuff; corresponds to an array of pointer to double. double stuff[3][3] doesn't have any pointers - it's a 2D array of double.

提交回复
热议问题