摘要: public int ShuZi(int i) { int sum = 0; if (i <= 0) { sum = 0; } else if (i == 1 || i == 2) { sum = 1; } else { sum = ShuZi(i-1) + ShuZi(i-2); } return 阅读全文
posted @ 2016-02-19 09:55 最讨厌起名字什么的了 阅读(289) 评论(0) 推荐(0) 编辑
摘要: int []array=new int [5]{5,3,1,9,7}; for (int i = 0; i < array.Length; i++) { for (int j = i+1; j < array.Length; j++) { if (array[j] < array[i]) { int 阅读全文
posted @ 2016-02-19 09:54 最讨厌起名字什么的了 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1 Check.aspx页面 string uid = Request["uid"].ToString(); TextDataContext _context = new TextDataContext(); var query = _context.... 阅读全文
posted @ 2015-12-28 16:44 最讨厌起名字什么的了 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-21 22:34 最讨厌起名字什么的了 阅读(128) 评论(0) 推荐(0) 编辑
摘要: protected void Page_Load(object sender, EventArgs e) //加载 { if (!IsPostBack) { FileSheng(); FileShi(); ... 阅读全文
posted @ 2015-12-21 22:32 最讨厌起名字什么的了 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 绑定数据源: DataClassesDataContext context = new DataClassesDataContext(); Repeater1.DataSource = context.Info; Repeater1.DataB... 阅读全文
posted @ 2015-12-21 22:31 最讨厌起名字什么的了 阅读(145) 评论(0) 推荐(0) 编辑
摘要: var rec=from a in 表A join b in 表B on a.字段 equals b.字段 join c in 表C on b.字段 equals c.字段 select new item { item1=a.想要的字段, item2=b.想要的字段, item3=c.想要的字段, ... 阅读全文
posted @ 2015-12-21 22:20 最讨厌起名字什么的了 阅读(141) 评论(0) 推荐(0) 编辑
摘要: public int ganyang(int cun) { if (cun == 7) { return 2; } int sum = (gan... 阅读全文
posted @ 2015-11-05 22:32 最讨厌起名字什么的了 阅读(188) 评论(0) 推荐(0) 编辑
摘要: class Program { //定义一个结构体 struct student//student就是我们自己造的新数据类型 { public int code;//public修饰符 ... 阅读全文
posted @ 2015-11-05 22:18 最讨厌起名字什么的了 阅读(2987) 评论(0) 推荐(0) 编辑
摘要: while (true) { //数组:一组同类型的数据,数组是有长度的,数组是有索引的,索引从0开始 int[] shuzu = new int[7];//定义了一个长度为6的int类型的数组 R... 阅读全文
posted @ 2015-11-05 16:00 最讨厌起名字什么的了 阅读(206) 评论(0) 推荐(0) 编辑