程序代码:
private bool checkWin() { int[] winArray = new int[9]{1,2,3,4,5,6,7,8,0}; if (intArray.Equals(winArray)) return true; return false; }
请问如此比较两个int Array是不可取的吗?
private bool checkWin() { int[] winArray = new int[9]{1,2,3,4,5,6,7,8,0}; if (intArray.Equals(winArray)) return true; return false; }