• 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         }
  • 相关阅读:
    zabbix_agent 主动模式配置
    zabbix 监控ipmi
    超级详细全截图化VMware 安装ubantu
    docker 部署
    C# DataTable和List转换操作类
    C#类型转换工具类
    C# 注册windows 服务
    C# wsdl.exe 生成类文件
    visual studio code download url
    c# xml序列化和反序列化
  • 原文地址:https://www.cnblogs.com/cthulhu/p/1866929.html
Copyright © 2020-2023  润新知