假設二維陣列int [,] array = new int[700,700];
一共有700*700個int型別的數值
現在需要對這些數值進行比較,相同數值的array分為一組,存到 List<string> list1= new List<string>();中
例如 array[0,0]=1 array[10,10]=1 array[9,0]=1 array[110,220]=1
那么list1={"array[0,0]","array[10,10]","array[9,0]"," array[110,220]"}
同理,其他數值相同的存到 list2,list3,.......中
有多少組相同的數值,就存多少個list
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/237380.html
標籤:C#
