由Length可取得長度. 1: int suncount; 2: int[] Array = {0,1,2}; 3: //一個名為Array的陣列,裡面有三個元素,分別是0、1、2 4: 5: suncount = Array.Length;
確定! 回上一頁