摘要: 自己编程序有一段时间了,为什么每次写程序总是不能达到自己想要的结果,每天自己很累,真的很想休息,但没有时间休息,哎,还有很多东西需要掌握,而没有时间去学习,做的程序达不到老板的要求,我是一名应届毕业生,每当有问题的时候总想去问别人,问时间久了,别人肯定会烦的,现在已经烦了,很多效果自己知道怎么做,到每次都失败,总是再别人的修正之后才能正确显示,哎,太累了,真希望自己是现在是个编程高手 阅读全文
posted @ 2011-06-17 14:11 杀 手 阅读(461) 评论(6) 推荐(0) 编辑
摘要: C#中简单的正则表达式(也经常会用到的) 第一个:验证输入的字符串是否为数字View Code /// <summary> /// 验证输入字符串为数字 /// </summary> /// <param name="P_str_num">输入字符</param> /// <returns>返回一个bool类型的值</returns> public bool validateNum(string P_str_num) { return Regex.IsMatch(P_str_num, "^[0 阅读全文
posted @ 2011-04-23 13:54 杀 手 阅读(379) 评论(1) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Exerice1{ public class Program { public static void Main(string[] args) { int[] count = new int[15] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; for (int i = 0; i < 5; i++) { for (int j = 0; j &l 阅读全文
posted @ 2011-04-12 13:46 杀 手 阅读(506) 评论(1) 推荐(1) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Exerice{ public class Program { public static void Main(string[] args) { int[] count = new int[5]; // 需要排序的数组 int i, j; // 循环变量 int temp; // 临时变量 //读入数组 Console.WriteLine("请输入5个数:"); for (i = 0; i & 阅读全文
posted @ 2011-04-12 11:27 杀 手 阅读(844) 评论(0) 推荐(0) 编辑
摘要: System.Collections 命名空间包含接口和类,这些接口和类定义各种对象(如列表、队列、位数组、哈希表和字典)的集合。System.Collections.Generic 命名空间包含定义泛型集合的接口和类,泛型集合允许用户创建强类型集合,它能提供比非泛型强类型集合更好的类型安全性和性能。System.Collections.Specialized 命名空间包含专用的和强类型的集合,例如,链接的列表词典、位向量以及只包含字符串的集合。 ArrayList 类:使用大小可按需动态增加的数组。using System;using System.Collections.Generic;u 阅读全文
posted @ 2011-04-11 16:37 杀 手 阅读(20051) 评论(0) 推荐(2) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DVL.Model{ public class TestModeol { #region 每页记录数 private int pageCount = 5; public int PageCount { get { return pageCount; } set { pageCount = value; } } #endregion #region 总记录数 private int total; public in 阅读全文
posted @ 2011-04-11 09:01 杀 手 阅读(289) 评论(3) 推荐(0) 编辑
摘要: 大家好,我是今天开通博客的,我是一个新手,请大家多多照顾 阅读全文
posted @ 2011-04-09 14:46 杀 手 阅读(118) 评论(0) 推荐(0) 编辑