摘要: static void Main(string[] arr) { int[] shuZi; bool bj = false; while (!bj) { ... 阅读全文
posted @ 2015-05-10 15:54 自由无风 阅读(286) 评论(0) 推荐(0) 编辑
摘要: params将方法中实际参数列表中跟可变参数数组类型一致的类型,都处理为数组中的的元素 static void Main(string[] arr) { // int[] numbers={2,3,4,6,7,5,434,341,412} /... 阅读全文
posted @ 2015-05-09 22:23 自由无风 阅读(7152) 评论(1) 推荐(0) 编辑
摘要: ref参数能够将一个变量带入方法进行改变,改变完成后再将改变完成后的变量带出方法ref参数要求在方法外必须为值赋值,而方法内可以不赋值static void Main(string[] arr) { int gongzi = 5000; Ji... 阅读全文
posted @ 2015-05-09 22:07 自由无风 阅读(489) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] arr) { Console.WriteLine("请输入用户名"); string uname = Console.ReadLine(); ... 阅读全文
posted @ 2015-05-09 21:54 自由无风 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 常用的参数配置项1、showArrows:是否显示滚动箭头,模式是false;2、maintainPosition:当滚动区重新初始化后,是否保持滚动条的原有位置,默认是true;3、stickToBottom:当maintainPos... 阅读全文
posted @ 2015-05-08 09:37 自由无风 阅读(5795) 评论(0) 推荐(0) 编辑
摘要: A IMG { filter:gray;/* IE6-9 */-webkit-filter: grayscale(1);/* Webkit */ }A:hover IMG {FILTER:none;-webkit-filter: grayscale(0)} 阅读全文
posted @ 2015-05-07 15:59 自由无风 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 可以自由的给滚动条定义背景,上下按钮,当然不仅仅是颜色,连图片当背景也可以。支持鼠标滚轮,点击滚动条滚轴定位,上下按钮久按加速,兼容firefox,谷歌下载地址 阅读全文
posted @ 2015-05-07 13:53 自由无风 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑