摘要:
C#对数组中的元素进行查找,清除 -------------------------------------------------------------------------------- //在数组的使用中,小不了要对其中的元素进行查找,清除等操作,以下是一小例,写出来供大家参考参考: 程序代码 using System; using System.Collections.Generi... 阅读全文
摘要:
求最大值、索引、排序总结 -------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; namespace ljun_CSharp_Study { class... 阅读全文
摘要:
//选择排序,从小到大 public static int SelectSort(int[] a) { int count=0;// 计算时间复杂度,运行的次数 int length = a.Length; int k= 0; int chan;//用来交换的中间变量 for(int i=0;iarray[j+1]) //当相连的两个数的满足前者大于后者时交换数值 { p=1; chan = a... 阅读全文