m******t 发帖数: 4077 | 1 比如3维以上的,方法好像有好几种,比如
void f(x[5][6][7])
{
}, 或者
void f(x[][6][7])
{
}
还有什么别的办法吗?最常见的办法是什么呢? | d****n 发帖数: 1637 | 2 Do you need save values after function call?
If so you call pass by pointer or reference. | l********a 发帖数: 1154 | 3 我一般都void foo(type ***x, int n, int m, int p)这种 | X****r 发帖数: 3557 | 4 ***x is quite different than x[][][]
【在 l********a 的大作中提到】 : 我一般都void foo(type ***x, int n, int m, int p)这种
| b********e 发帖数: 58 | 5 This is places where a structure might provide better code and better
readability. |
|