摘要: string strTest= "www.BaiDu.com",strRst=""; //忽略大小写,将strTest中的BaiDu替换为baidu Regex myRegex = new Regex("baidu",RegexOptions.IgnoreCase); strRst=myRegex.Replace(strTest,"baidu"); Console.WriteLine("\n替换前的字符串为:"+strTest); Console.WriteLine("... 阅读全文
posted @ 2012-04-11 21:39 氺〤魚Oo。 阅读(236) 评论(0) 推荐(0) 编辑
摘要: //为操作方便,我封闭了一个类,代码如下: class The_Day { public static string getTheDay() { string strDay = ""; string[] Day = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" }; System.DateTime currentTime = System.Dat... 阅读全文
posted @ 2012-04-11 21:33 氺〤魚Oo。 阅读(355) 评论(0) 推荐(1) 编辑
摘要: 效果截图如下 :主要代码如下: static void Main(string[] args) { string strTest1 = "{正则表达式-小试牛刀 By yxHuang!...}"; string strTest2 = "{微软、谷歌、百度}"; string strTest3 = "{www.BaiDu.com}"; //在strTest1中寻找yxHuang if (System.Text.RegularExpressions.Reg... 阅读全文
posted @ 2012-04-11 20:00 氺〤魚Oo。 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.cctry.com/thread-16510-1-1.html一。彻底解决兼容问题:Windows 7下载安装 Visual C++ 6.0(VC6) 全程图解网上成千上万的诸如 “有没有Win7兼容的VC6的下载”、“Win7下Visual C++ 6.0不兼容问题” 之类的问题,多数意思是VC6和Win7不兼容,而现在不少学校或是考试用的还是Visual Studio套件,新的Win7或Vista系统下要安装怎么办?说实话我也一直没有试过,所以也想当然的认为Win7下就不能安装VC6,压根就100%不兼容?一直使用高版本的VS(如VS2008和现在用的VS2 阅读全文
posted @ 2012-04-11 16:13 氺〤魚Oo。 阅读(263) 评论(0) 推荐(0) 编辑