所以我有一個指針的2D陣列,像這樣:C++傳遞指針多維數組
int board[3][5] = { 3, 5, 2, 2, 1, 3, 4, 34, 2, 2, 3, 4, 3, 223, 923 };
int* ptr[sizeof(board[0])/sizeof(board[0][0])] = board;
我試圖跟隨this example。但由於某種原因,我得到的錯誤:
IntelliSense: initialization with '{...}' expected for aggregate object
任何想法是什麼問題是?
這個問題有答案[這裏](http://stackoverflow.com/questions/859634/c-pointer-to-array-array-of-pointers-disambiguation) – Kevin