DateTime.Now.ToString( " yyyy " )DateTime.Now.ToString( " yyyyMM " )DateTime.Now.ToString( " yyyyMMdd " )
分类:
其他好文 时间:
2014-06-15 00:49:01
阅读次数:
135
Object.extend=function(destination, source) {for(varpropertyinsource) { destination[property]=source[property];}returndestination;}Prototype 对Object类进...
分类:
Web程序 时间:
2014-06-15 00:47:58
阅读次数:
188
About getattrPython’s getattr function is used to fetch an attribute from an object, using a string object instead of an identifier to identify the at...
分类:
编程语言 时间:
2014-06-15 00:26:18
阅读次数:
487
#include #include #include #include using namespace std;int n,m;int bin[50001];int findx(int x){ int r=x; while(r!=bin[r]) r=bin[r]; int j=x,k; while(...
分类:
其他好文 时间:
2014-06-15 00:17:10
阅读次数:
323
1:多维数组参数12345实参 所匹配的形式参数数组的数组 char c[8][10]; char(*c)[10]; 数组指针指针数组 char *c[15]; char **c; ...
分类:
编程语言 时间:
2014-06-15 00:14:03
阅读次数:
320
if (Request["name"] != null) { try { string FileName = MyCrypt.Decrypt(Request["name"]); //string FilePath = Server.MapPath(string.Format("UploadFile....
分类:
其他好文 时间:
2014-06-14 23:47:24
阅读次数:
352
当初第一次做的是FPLICE这个题,当时就觉得要用图论去搜索,但是当时陷入死思维就是 dp[][]两个维度都是点,这样就违背了题目的本意,题目给定了一个时间T,在不超过时间T的情况下求最小的消耗,这不就是背包嘛。。。即拿T做容量,在图上面 设置 dp[i][j]表示i点的时候 j时间的最小消耗。这样...
分类:
其他好文 时间:
2014-06-14 23:18:41
阅读次数:
298
水题#include #include #include using namespace std;int main(){ vector a(4); cin >> a[0] >> a[1]>>a[2]>>a[3]; string str; cin >> str; int res = 0; for(in...
分类:
其他好文 时间:
2014-06-14 23:00:14
阅读次数:
249
第一、一般战斗界面特效比较多,占内存多,切换战斗界面的时候上个界面的资源不会被释放造成占用内存迅速升高,可能会导致卡死 解决办法就是,加个中间界面第二、lua的table问题,在lua中table里面是{'1','2','3'}访问的时候用1.tostring()在android中有时候会访问不到,...
分类:
其他好文 时间:
2014-06-14 22:46:50
阅读次数:
278
JavaScript可以将一切看作对象,类似Java和C++的定义,一切皆运行在对象之上,不过这里JavaScript的对象却有着很大的区别.JavaScript对象按照来源可分为,原生对象, 内置对象,宿主对象. 原生对象:程序执行的对方,也就是Coders自己定义的; 内置对象:容易理解,即.....
分类:
编程语言 时间:
2014-06-14 22:44:48
阅读次数:
282