摘要: static void Main(string[] arr) { int max= Class1.GetMax(4, 7); Console.WriteLine(max); Console.ReadKey();... 阅读全文
posted @ 2015-05-06 22:35 自由无风 阅读(295) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] arr) { int[] names = {4,2,5,7,6,8,9,1,3,0};//Array.Sort(names)数组排序 for (int i = 0; i n... 阅读全文
posted @ 2015-05-06 22:10 自由无风 阅读(189) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] arr) { string[] names = { "老杨1", "老李2", "老王3", "老牛4", "老虎5", "老磁6" }; for (int i = 0; i < names... 阅读全文
posted @ 2015-05-06 21:57 自由无风 阅读(3779) 评论(0) 推荐(0) 编辑
摘要: //计算数组中最大值,最小值,平均值和总和 //类中main最先执行 static void Main(string[] args) { //声明一个数组,数组长度一定固定就不能更改了 int[] nums = {... 阅读全文
posted @ 2015-05-06 21:44 自由无风 阅读(1645) 评论(0) 推荐(0) 编辑
摘要: 元数据相对我们来说通俗点 就是你引用里面引用的那些dll比如 对Thread 按F12不就是提示从元数据,.. 阅读全文
posted @ 2015-05-06 21:32 自由无风 阅读(3091) 评论(0) 推荐(0) 编辑
摘要: 1 //声明结构 结构与枚举区别,一个不用声明类型,一个要声明类型 2 public struct Person 3 { 4 //这里叫字段,做用也是存储内容,变量只可以存一个值,字段可以存多个值 5 ... 阅读全文
posted @ 2015-05-06 20:54 自由无风 阅读(1793) 评论(0) 推荐(0) 编辑
摘要: //声明枚举 public enum Sesons { 春, 夏, 秋, 冬 } static void Mai... 阅读全文
posted @ 2015-05-06 20:26 自由无风 阅读(3025) 评论(0) 推荐(0) 编辑