Stone Game, Why are you always there?Time Limit:
2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total
Submission(s): 393Accepted S...
分类:
其他好文 时间:
2014-04-29 17:23:45
阅读次数:
444
遇到一段代码,从数据库里读出来带 \ 字符需要转义成中文~用到url_decode(); 1
//$info 为刚从数据库中读取的二维数组 2 3 foreach($info as $key1 => &$value1) { 4
foreach($key1 as $key2 => &$val...
分类:
Web程序 时间:
2014-04-29 17:22:47
阅读次数:
709
并查集的路径压缩。 1 #include 2 #include 3 4 #define MAXNUM
100005 5 6 int deg[MAXNUM], bin[MAXNUM]; 7 char isCycle[MAXNUM]; 8 9 int
find(int x) {10 i...
分类:
其他好文 时间:
2014-04-29 17:22:46
阅读次数:
308
1 /// 2 /// 将集合转换成DataTable 3 /// 4 /// 集合 5 /// 6
public static DataTable ToDataTable(IList list) 7 ...
分类:
其他好文 时间:
2014-04-29 17:22:46
阅读次数:
321
恩,开始写API编程的第三节,其实马上要考试了,但是不把这节写完,心里总感觉不舒服啊。写完赶紧去复习啊
在前两节中,我们介绍了Windows API 编程的一些基本概念和一个最基本API函数
MessageBox的使用,在这节中,我们就来正式编写一个Windows的窗口程序。在具体编写代码之前,我....
问 1 class B 2 { 3 public: 4 virtual void fun()
5 { 6 printf("fun in B\n"); 7 } 8 void b1() 9 {10 printf("b1 in B\n...
分类:
其他好文 时间:
2014-04-29 17:22:46
阅读次数:
424
//控件名:myNewClock//作者:刘典武//时间:2011-06-10using
System;using System.Collections.Generic;using System.ComponentModel;using
System.Drawing;using System.Dat...
分类:
其他好文 时间:
2014-04-29 17:21:46
阅读次数:
538
如果用下面第1行的写法,调用[NSObject
cancelPreviousPerformRequestsWithTarget:self
selector:@selector(removeFromSuperview) object:nil];可以生效如果用下面第3行的写法,调用[NSObject
c...
分类:
其他好文 时间:
2014-04-29 17:21:46
阅读次数:
326
当类中内联函数仅该类调用,则内联函数的定义既可以放在.h也可以放在.cpp。当类中内联函数被外部调用,则内联函数的定义只能放在.h中,否则出现链接错误。“inline成员函数的定义必须在调用该函数的每个源文件中是可见的。”
---- 《C++ Primer 4》P374
分类:
其他好文 时间:
2014-04-29 17:18:47
阅读次数:
272
字符串转json对象 SyntaxError: missing ; before
statementvar obj = eval("("+strJson+")");
分类:
Web程序 时间:
2014-04-29 17:18:46
阅读次数:
502