/**********创建省级表**********/CREATE TABLE T_Province( ProID INT IDENTITY(1,1) PRIMARY KEY, --省份主键 ProName NVARCHAR(50) NOT NULL, --省份名称 ProSort INT, --省份排序 ProRemark NVARCHAR(50) --说明 )Goinsert T_Province(ProName,ProSort,ProRemark) Values('北京市','1','直辖市')insert T_Province(Pro.. Read More
posted @ 2012-02-27 17:47 木子易 Views(3300) Comments(1) Diggs(0) Edit
static void Main(string[] args) { /* * * 1 * 1 1 * 1 2 1 * 1 3 3 1 * 1 4 6 4 1 * 1 5 10 10 5 1 */ int[,]arry=new int[6,6]; for (int i = 0; i < 6; i++) { arry[i, 0] = 1; arry[i, i] = 1; for (int j = 1; j < i+1; j++) { arry[i,j]=arry[i-1,j-1]+arry[i-1,j]; } } for(int i=0;i<6;i++) { for(int j= Read More
posted @ 2012-02-27 15:51 木子易 Views(167) Comments(0) Diggs(0) Edit
static void Main(string[] args) { int[]a= Read();//读数据 Sort(ref a);//排序 Write(a);//输出数据 }读数据 1 /// <summary> 2 /// 读数据 3 /// </summary> 4 /// <returns></returns> 5 public static int[] Read() 6 { 7 int i; 8 9 int[] a = new int[5];10 for (... Read More
posted @ 2012-02-27 09:44 木子易 Views(387) Comments(0) Diggs(0) Edit