摘要: namespace ConsoleApplication10{ class Program { public double[] paixu(double[] a) { double temp; for (in... 阅读全文
posted @ 2015-04-19 16:56 Yusarin 阅读(236) 评论(0) 推荐(0) 编辑
摘要: namespace 一元二次方程函数解决{ class Program { static void Main(string[] args) { while (true) { ... 阅读全文
posted @ 2015-04-19 16:54 Yusarin 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 法1namespace 函数数组排序带出最大最小值及平均值{ class Program { static void Main(string[] args) { int[] b=new int[]{9,1,5,3,7}; ... 阅读全文
posted @ 2015-04-19 16:53 Yusarin 阅读(790) 评论(0) 推荐(0) 编辑
摘要: namespace 赶羊递归 { class Program { public int jisuan(int day) //创建一个函数,输入day计算出羊的总数 { int sum=0; ... 阅读全文
posted @ 2015-04-19 16:51 Yusarin 阅读(102) 评论(0) 推荐(0) 编辑
摘要: namespace ConsoleApplication1{ class Program { struct huiyuan { public string name; public string password; ... 阅读全文
posted @ 2015-04-19 16:49 Yusarin 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 自己简单版:namespace ConsoleApplication25{ class Program { struct player { public string name; public int hp,... 阅读全文
posted @ 2015-04-19 16:48 Yusarin 阅读(183) 评论(0) 推荐(0) 编辑
摘要: namespace ConsoleApplication30{ class Program { struct buy { public string name; public double prc; ... 阅读全文
posted @ 2015-04-19 16:44 Yusarin 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 多个箱子:namespace ConsoleApplication1{ class Program { private static void ditu(int[, ,] dt, int i) { for (int j = 0; j < ... 阅读全文
posted @ 2015-04-19 16:40 Yusarin 阅读(525) 评论(0) 推荐(0) 编辑
摘要: namespace ConsoleApplication1{ class Program { struct xs { public string name; public double shuxue; ... 阅读全文
posted @ 2015-04-19 16:37 Yusarin 阅读(205) 评论(0) 推荐(0) 编辑
摘要: namespace ConsoleApplication22{ class Program { struct s { public string name; public int age; } ... 阅读全文
posted @ 2015-04-19 16:34 Yusarin 阅读(265) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { while (true) { /* string x; Console.WriteLine("请随便输入:"); ... 阅读全文
posted @ 2015-04-19 15:07 Yusarin 阅读(119) 评论(0) 推荐(0) 编辑
摘要: (一)数学类:Math1.Math.Ceiling(小数/整数):返回大于当前小数的最小整数2.Math.Floor(小数/整数):返回小于当前小数的最大整数Console.WriteLine(Math.Ceiling(3.14)); //4Console.WriteLine(Math.Floor... 阅读全文
posted @ 2015-04-19 14:58 Yusarin 阅读(187) 评论(0) 推荐(0) 编辑
摘要: for (int i = 1; i < =n-1; i++)////n个数需要循环n-1趟 , 每一趟都会找出最小的那个数 { for (int j = 1; j < =n-i; j++)// 每一趟都要n-i次,即俩俩调换的次数 ... 阅读全文
posted @ 2015-04-19 09:51 Yusarin 阅读(126) 评论(0) 推荐(0) 编辑
摘要: create database s2015041--创建数据库drop database XXXXXX--删除数据库use master--使用master数据库go--语句与语句的链接符号create table abb( code int not null,--列 name varchar(... 阅读全文
posted @ 2015-04-19 09:14 Yusarin 阅读(151) 评论(0) 推荐(0) 编辑