摘要: class Program { static int[] Method(int[] arr)//方法一,先去确定最大值,从后往前排 { for (int i = arr.Length - 1; i > 0; i--) { ... 阅读全文
posted @ 2015-08-12 23:33 WhyToHow 阅读(595) 评论(0) 推荐(0) 编辑
摘要: class Program { /// /// 二分法查找 /// /// 要查找的数 /// 有序的数组 /// 查找数的索引 static int Search(int s,int[] ... 阅读全文
posted @ 2015-08-12 23:01 WhyToHow 阅读(261) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Method()//无参数 无返回值方法 { Console.WriteLine("欢迎使用!"); } static void Method(int... 阅读全文
posted @ 2015-08-12 21:52 WhyToHow 阅读(174) 评论(0) 推荐(0) 编辑