摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(s... 阅读全文
posted @ 2016-05-19 00:06 小飛 阅读(272) 评论(0) 推荐(0)
摘要: 一、概念conception: 函数体内调用本函数自身,直到符合某一条件不再继续调用。 二、应满足条件factor: (1)有反复执行的过程(调用自身); (2)有跳出反复执行过程的条件(函数出口) 三、例子example 阶乘的计算n!= n*(n-1)*(n-2)*(n-3)*……*1(n>0) 阅读全文
posted @ 2016-05-15 20:23 小飛 阅读(164) 评论(0) 推荐(0)
摘要: 练习一: 练习二: 练习三: 练习四: 练习五: 练习六: 练习七: 练习八: 阅读全文
posted @ 2016-05-14 21:45 小飛 阅读(135) 评论(0) 推荐(0)
摘要: 结构体 class Program { struct student { public int num; public string name; public string sex; public one oone; p... 阅读全文
posted @ 2016-05-14 21:17 小飛 阅读(268) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 习题一 { class Program { //卖羊:一个人赶了一群羊,每过一个村庄卖掉这群羊的二分之一外加一只... 阅读全文
posted @ 2016-05-13 02:24 小飛 阅读(193) 评论(0) 推荐(0)
摘要: } } } 阅读全文
posted @ 2016-05-11 23:17 小飛 阅读(1931) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1函数 { class Program { //没有返回值,没有参数 ... 阅读全文
posted @ 2016-05-11 23:09 小飛 阅读(134) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.Threading.Tasks; namespace ConsoleApplication1特殊集合 { class Program ... 阅读全文
posted @ 2016-05-11 23:07 小飛 阅读(133) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections;//先引用 namespace ConsoleApplication2集合 { class Program ... 阅读全文
posted @ 2016-05-11 00:34 小飛 阅读(119) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(s... 阅读全文
posted @ 2016-05-11 00:31 小飛 阅读(169) 评论(0) 推荐(0)