CStringUTF8ToGB2312(CStringstr){intlen;//UTF8转换成Unicodelen=MultiByteToWideChar(CP_UTF8,0,str,-1,NULL,0);wchar_t*pUnicode=newwchar_t[len+1];memset(pUni...
分类:
其他好文 时间:
2014-07-22 23:17:35
阅读次数:
435
public class CookiesUtils{ public static void
SetCookie(String key, String value) { SetCookie(key, value, null, null, null,
false); } ...
分类:
其他好文 时间:
2014-07-22 23:16:34
阅读次数:
339
1.获取CSV数据内容public static Object[][]
getFromCSV(String filename) { if (!(new File(filename)).exists()){ return null;
} Object[][] content; CSVReader r....
分类:
Web程序 时间:
2014-07-22 23:16:34
阅读次数:
467
1、单链表循环体用while(p->next!=NULL)而不用while(p!=NULL)的原因 node *Find_MidNode(node
*head){ if(head->next==NULL||head->next->next==NULL) return
head->next; node...
分类:
其他好文 时间:
2014-07-22 23:11:15
阅读次数:
374
探索javascript中null和undefined的深渊译05 January
2014当讨论JavaScript中的原始数据类型时,大多数人都知道的基本知识,从String,Number到Boolean。这些原始类型相当简单,行为符合常识。但是,本文将更多聚焦独特的原始数据类型Null和Und...
分类:
其他好文 时间:
2014-07-22 23:10:32
阅读次数:
507
浏览器处于安全策略考虑,只允许Javascript关闭由javascript打开的页面,为了用js关闭当前窗口,我们可以这么考虑,这也是最常用的做法。fdsafasfunction
xx(){ // 重置window.opener用来获取打开当前窗口的窗口引用 // 这里置为null,避免I...
主键约束(Primary Key
Constraints):不能在允许NULL值的列上定义主键约束。 ALTER TABLE dbo.test ADD CONSTRAINT PK_test
PRIMARY KEY(testid);唯一约束(Unique Constraints):唯一约束用来保...
分类:
其他好文 时间:
2014-07-22 23:09:33
阅读次数:
347
time_t first, second;first = time(NULL);// 你的程序
...............second = time(NULL);printf("The difference is: %f
seconds\n",difftime(se...
分类:
其他好文 时间:
2014-07-22 23:08:54
阅读次数:
216
java.lang.IllegalStateException: Target host
must not be null, or set in parameters.
原因:连接地址不完整,必须加上"http://"。========================================...
分类:
移动开发 时间:
2014-07-22 23:08:12
阅读次数:
415
如果用下面第1行的写法,调用[NSObject
cancelPreviousPerformRequestsWithTarget:self
selector:@selector(removeFromSuperview) object:nil];可以生效如果用下面第3行的写法,调用[NSObject
c...
分类:
其他好文 时间:
2014-04-29 17:21:46
阅读次数:
326