yp秋水伊人

导航

2016年8月31日 #

自定义控件

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Drawing; 5 using System.Data; 6 using System.Linq; 7 using System.Text; 8 using System.Thre... 阅读全文

posted @ 2016-08-31 21:19 yp秋水伊人 阅读(135) 评论(0) 推荐(0)

自定义 控件

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Drawing; 5 using System.Data; 6 using System.Linq; 7 using System.Text; 8 using System.Threadi... 阅读全文

posted @ 2016-08-31 21:14 yp秋水伊人 阅读(111) 评论(0) 推荐(0)

listview 控件

摘要: private void Form1_Load(object sender, EventArgs e) { //设置该listview关联的imagelist listView1.LargeImageList = imageList2; listView1.SmallImageList = imag 阅读全文

posted @ 2016-08-31 21:11 yp秋水伊人 阅读(117) 评论(0) 推荐(0)

递归

摘要: 一、概念conception: 函数体内调用本函数自身,直到符合某一条件不再继续调用。 二、应满足条件factor: (1)有反复执行的过程(调用自身); (2)有跳出反复执行过程的条件(函数出口) 三、例子example 阶乘的计算n!= n*(n-1)*(n-2)*(n-3)*……*1(n>0) 阅读全文

posted @ 2016-08-31 21:06 yp秋水伊人 阅读(129) 评论(0) 推荐(0)

ps

摘要: ps网页设计(快捷键) 阅读全文

posted @ 2016-08-31 21:06 yp秋水伊人 阅读(125) 评论(0) 推荐(0)

结构体 枚举类型

摘要: 结构体: 注意:枚举类型和结构体都属于值类型。 结构体:就是一个自定义的集合,里面可以放各种类型的元素,用法大体跟集合一样。 一、定义的方法: struct student { public int nianling; public int fenshu; public string name; p 阅读全文

posted @ 2016-08-31 21:05 yp秋水伊人 阅读(949) 评论(0) 推荐(0)

结构体

摘要: 效果图: 开始: 结束: 阅读全文

posted @ 2016-08-31 21:05 yp秋水伊人 阅读(128) 评论(0) 推荐(0)

out传值

摘要: class Program { public void jia(int a, int b) { a = a + b; Console.WriteLine(a); } } static void Main(string[] args) { Console.Write("请输入a="); int a = 阅读全文

posted @ 2016-08-31 21:04 yp秋水伊人 阅读(120) 评论(0) 推荐(0)

函数

摘要: 一个较大的程序一般应分为若干个程序块,每一个模块用来实现一个特定的功能。所有的高级语言中都有子函数这个概念,用子程序实现模块的功能。在C#中,子程序的作用是由一个主函数和若干函数构成。有主函数调用其他函数,其它函数也可以互相调用。同一个函数可以被一个或多个函数调用任意次数。 在程序设计中,尝将一些常 阅读全文

posted @ 2016-08-31 20:56 yp秋水伊人 阅读(111) 评论(0) 推荐(0)

数组

摘要: 数组:数组,就是相同数据类型的元素按一定顺序排列的集合,就是把有限个类型相同的变量用一个名字命名,然后用编号区分他们的变量的集合,这个名字称为数组名,编号称为下标。 //一维数组 //数组初始化 ,创建数组 int[]array=new int[5];//数组长度为5 array[0]=1; arr 阅读全文

posted @ 2016-08-31 20:55 yp秋水伊人 阅读(151) 评论(0) 推荐(0)