2013年6月2日
摘要: ylbtech-Arithmetic:Console-算法[]-数组求最大值和最小值(只能遍历一次)1.A,Demo(案例)Console-算法[]-数组求最大值和最小值(只能遍历一次)1.B,Solution(解决方案)1.B.1, 方法一using System;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { int[] arrayList = new int[] {2,4,1,6,3,6,9,8 }; ... 阅读全文
posted @ 2013-06-02 08:35 ylbtech 阅读(737) 评论(0) 推荐(0)
摘要: ylbtech-Arithmetic:Console-算法[if,Function]-一用递归的方式代替循环语句1.A,Demo(案例)用递归的方式代替循环语句1.B,Solution(解决方案)1.B.1,方式一using System;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { int i = 0; int length = 10; Write(i,length); ... 阅读全文
posted @ 2013-06-02 08:02 ylbtech 阅读(353) 评论(0) 推荐(0)