2011年7月27日
摘要: 1:随机数的基数为大写字母26个,和数字0-9View Code namespacetest{classProgram{staticvoidMain(string[]args){stringresult=string.Empty;string[]arrString={"A","B","C","D","E","F","G","H","I","J","K","L" 阅读全文
posted @ 2011-07-27 15:47 wtq 阅读(2454) 评论(0) 推荐(0) 编辑
摘要: usingSystem.Text.RegularExpressions;classRegExSample{staticstringCapText(Matchm){//Getthematchedstring.stringx=m.ToString();//Ifthefirstcharislowercase...if(char.IsLower(x[0])){//Capitalizeit.returnchar.ToUpper(x[0])+x.Substring(1,x.Length-1);}returnx;}staticvoidMain(){stringtext="fourscoreands 阅读全文
posted @ 2011-07-27 11:39 wtq 阅读(4686) 评论(0) 推荐(0) 编辑