<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.baidu.com"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RET...
分类:
Web程序 时间:
2014-08-25 11:32:55
阅读次数:
186
最近在做64位代码移植,代码中到处充斥着类型转换,到处报编译警告和错误,比如以下使用:
unsigned int ret=0,*p=NULL;
p = (unsigned int *)malloc(sizeof(4));
ret = (unsigned int )p;
以上这段代码,在32位编译系统中没问题,但是在64位编译系统中就会报错,说是类型转换size不一样,因为在64位,所有指针...
分类:
其他好文 时间:
2014-08-23 23:01:01
阅读次数:
264
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键no 可用于Table2. 取消选取、防止复制3. onpaste="return false" 不准粘贴4. oncopy="return false;" oncut="ret.....
分类:
编程语言 时间:
2014-08-22 09:18:06
阅读次数:
379
;(function(global ,undefined){ var cache = {} var sn = '_ret_' + new Date().toString(36) function etic(tplNode , data){ var tplId = tp...
分类:
其他好文 时间:
2014-08-20 17:49:52
阅读次数:
290
display image dispMainPic(){ docuRef docuRef; docuType docuType; image ret; ; select firstonly docuRef wher...
分类:
其他好文 时间:
2014-08-20 15:52:22
阅读次数:
131
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:
其他好文 时间:
2014-08-20 13:53:12
阅读次数:
168
额 今天 在编译PDF时发现使用了一下STL中的z数值极限竟然编译不过,
return GetRangeConstraint(value
出现如下错误:
warning C4003: “max”宏的实参不足
error C2589: “(” : “::”右边的非法标记
google了一下,原来是需要把max用括号括起来避免和windows定义的宏混淆
ret...
分类:
数据库 时间:
2014-08-20 09:19:56
阅读次数:
273
问题:1.反转字符串,比如str=“hello world!!!",反转后ret=“!!!dlrow olleh";代码如下:#include #include char* reverse(char inp[],int size){ if(size<0) return NULL; /...
分类:
其他好文 时间:
2014-08-18 23:17:23
阅读次数:
242
Simply a variation of 3Sum:class Solution {public: int threeSumClosest(vector &num, int target) { int ret = 99999999999; std::sort(nu...
分类:
其他好文 时间:
2014-08-18 12:12:34
阅读次数:
193
http://www.cnblogs.com/silverwings/archive/2010/08/02/1790801.html使用这个做系统服务,反而导致超图服务的apache无法启动???该方法在Ret Hat Enterprise Linux Server 5.5上测试成功。首先需要编写系...
分类:
系统相关 时间:
2014-08-17 10:25:31
阅读次数:
193