码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
TcxShellListView添加文件
procedure TFormSystemTree.N29Click(Sender: TObject); var tmpStr: string; // 添加文件.. begin if OpenDialog1.Execute() then begin tmpStr := lvMain.Path + '\' + ExtractFileName(OpenDialog1.filename);...
分类:系统相关   时间:2015-04-03 09:24:56    阅读次数:151
随机生成验证码
static void Main(string[] args) { while (true) { string sj = "abcdefghijklmnopqrstuvwxyz"; string ...
分类:其他好文   时间:2015-04-03 09:13:04    阅读次数:120
一位一位竖着FOR出输入的字符串
static void Main(string[] args) { string a=Console.ReadLine(); for (int i = 0; i < a.Length; i++) ...
分类:其他好文   时间:2015-04-03 09:12:50    阅读次数:91
try判断是不是闰年
static void Main(string[] args) { while (true) { string rn = Console.ReadLine(); string s ...
分类:其他好文   时间:2015-04-03 09:11:36    阅读次数:111
简单闹铃
static void Main(string[] args) { DateTime a = DateTime.Now; DateTime nz=Convert.ToDateTime("2015-4-2 17:30"); ...
分类:其他好文   时间:2015-04-03 09:10:26    阅读次数:111
水开了
while (true) { Console.Write("烧水不?Y/N:"); string a = Console.ReadLine(); if (a =="Y" ) { Console.WriteLine("多少度了"); for (int i = 1; i <=100; i+...
分类:其他好文   时间:2015-04-03 09:09:11    阅读次数:108
判断年份
while (true) { Console.Write("请输入一个年份:"); string a = Console.ReadLine(); string b = ""; try { DateTime c = Convert.ToDateTime(a+"-2-29"); b="年是闰年"; } ...
分类:其他好文   时间:2015-04-03 09:08:32    阅读次数:133
将日期yyyy-MM-dd转为数字大写的形式
/** * 将日期转大写 * 例如:2013-05-13转为 二0一三年五月十三日 * @param date * @return */ public static String getDxDate(String date){ Strin...
分类:其他好文   时间:2015-04-03 09:08:04    阅读次数:119
简单判断邮箱格式
static void Main(string[] args) { while (true) { string email = Console.ReadLine(); if (email.Conta...
分类:其他好文   时间:2015-04-03 09:08:01    阅读次数:143
【C#】使用C#将类序列化为XML
直接上代码: public static class XmlSerializer { public static void SaveToXml(string filePath, object sourceObj, Type type) { if...
分类:Windows程序   时间:2015-04-03 09:07:00    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!