二維數組的長度
int row = Arr.GetLength(0); //第一維的長度(即行數)
int col = Arr.GetLength(1); //第二維的長度(即列數)
int length = Arr.Length;//二維數組中元素的總長度
二維數組的長度
int row = Arr.GetLength(0); //第一維的長度(即行數)
int col = Arr.GetLength(1); //第二維的長度(即列數)
int length = Arr.Length;//二維數組中元素的總長度
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。