码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
C#中List〈string〉和string[]数组之间的相互转换
1,从System.String[]转到ListSystem.String[] str={"str","string","abc"};List listS=new List(str);2, 从List转到System.String[]List listS=new List();listS.Add("...
分类:编程语言   时间:2015-04-13 22:27:19    阅读次数:178
简单小闹钟
static void Main(string[] args) { DateTimedt = DateTime.Now;//获取电脑当前时间 DateTime nz = Convert.ToDateTime("2015-4-13 17:00"); while (true) {dt = dt.Add....
分类:其他好文   时间:2015-04-13 22:25:58    阅读次数:145
数组排序求平均
static void Main(string[] args){ while (true) { int[] al = new int[7]; for (int i = 0; i al[j - 1]) { int t = al[j]; al[j] = al[j - 1]; al[...
分类:编程语言   时间:2015-04-13 22:20:10    阅读次数:146
数组随机手机号
static void Main(string[] args) { string[] a = new string[]{"13045674567","15065477456","13245679876", "15263332121","18799998888","13778964563","15.....
分类:移动开发   时间:2015-04-13 22:18:28    阅读次数:151
python中若干错误
今天在运行的django的时候一直提示”系统错误“,如下except Exception, ex: logger.error(printException()) return render_string("系统错误!")便想当然的加入 except Exception,...
分类:编程语言   时间:2015-04-13 20:52:10    阅读次数:122
穷举 百文百鸡
static void Main(string[] args) //记住格式 { int n = 0; for (int x = 1; x * 2 <= 100; x++) { for (int y = 1; y * 1 <= 100; y++) { for (int z = 1; z * 0......
分类:其他好文   时间:2015-04-13 20:50:46    阅读次数:130
try catch finally 样版
static void Main(string[] args) { while (true) { try { int i = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("无异常"); } catch (Exception) {...
分类:其他好文   时间:2015-04-13 20:49:31    阅读次数:107
D7WideChar转PAnsichar的
D7下的函数:PWideChar转PAnsichar的 function WCharToChar(WString: PWideChar): string;var Len, dwMinSize: Integer; lpUsedDefaultChar: BOOL;begin Result := '...
分类:其他好文   时间:2015-04-13 20:44:52    阅读次数:142
Delphi的属性Property
参考:http://www.cnblogs.com/edisonfeng/archive/2012/05/22/2513727.html一、基本属性TOnUserInfoShow = procedure(userName: String; userAge: Integer) of object;//...
分类:Windows程序   时间:2015-04-13 20:42:16    阅读次数:235
toj 1196 栈的运用(模拟浏览器)
两个栈来模拟浏览器的操作,简单模拟。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 stack forward; 7 stack back; 8 9 int main ()10 {11 string cur(...
分类:其他好文   时间:2015-04-13 20:41:47    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!