zoukankan      html  css  js  c++  java
  • C#数组排序

    版本比较旧了,就当一个思路的参考。


     1         private int[] sortArray(int[] input)
     2         {
     3             bool SwapMark = false;
     4             for (int i = 0; i < input.Length & !SwapMark; i++)
     5             {
     6                 for (int j = i + 1; j < input.Length; j++)
     7                 {
     8                     SwapMark = true;
     9                     if (input[i] < input[j])
    10                     {
    11                         int temp = input[i];
    12                         input[i] = input[j];
    13                         input[j] = temp;
    14                         SwapMark = false;
    15                     }
    16                 }
    17             }
    18             return input;
    19         }
  • 相关阅读:
    Dom修改元素样式
    URL百分号编码
    accesskey附上一些实例
    dom实例
    dom 创建时间
    关系运算符
    赋值运算符
    js图片随机切换
    js自增图片切换
    transform-origin盒子旋转位置
  • 原文地址:https://www.cnblogs.com/cthulhu/p/1866929.html
Copyright © 2011-2022 走看看