上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
  2014年8月20日
摘要: 理解是就是char** 相当于字符串数组,我以往纠结于该用 **arr还是*arr还是 (*arr),还是(**arr);对于**arr而言:*arr代表数组的最开头,也就是第一个字串的内容。**arr代表什么,不知道,这么用会报错。简单的来说arr[0],代表第一个字符串的值,实际指向的整个**a... 阅读全文
posted @ 2014-08-20 11:50 老游条 阅读(1039) 评论(0) 推荐(0) 编辑
  2014年8月13日
摘要: 因为需要实现自己的http客户端,就要自己模拟http 的socket通讯;上行不难,自己处理好http即可。但下行时,服务器端的动态语言返回数据有可能会是这种格式:http头16进制表示的数据长度1数据116进制表示的数据长度2数据2……16进制表示的数据长度n数据n0是这种格式时,返回头信息里面... 阅读全文
posted @ 2014-08-13 18:06 老游条 阅读(662) 评论(0) 推荐(0) 编辑
摘要: 说坑,可能过头了,是我理所当然的把OC看作C了,char* cstr = "zh中文12"; NSString* s = [NSString stringWithUTF8String:cstr]; NSLog(@"len = %d, %d", s.length,[s length]);结... 阅读全文
posted @ 2014-08-13 16:41 老游条 阅读(377) 评论(0) 推荐(0) 编辑
  2014年8月5日
摘要: #import @interface Utils : NSObject+(void) writeFile:(NSString *) filePath data:(NSString *) _data;+(NSString *) readFile:(NSString *) filePath;@end#i... 阅读全文
posted @ 2014-08-05 12:09 老游条 阅读(208) 评论(0) 推荐(0) 编辑
  2014年7月8日
摘要: CCLog("Lein will hide account!CS_FAST_REGISTER_REQ"); CCNode* child1 = (CCNode*)(m_pLayer->getChildByTag(1)); ... 阅读全文
posted @ 2014-07-08 19:02 老游条 阅读(660) 评论(0) 推荐(0) 编辑
  2014年7月3日
摘要: OS:Application.dataPath : Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/xxx.app/DataApplication.streamingAssetsPath : Application/xxxxxxxx... 阅读全文
posted @ 2014-07-03 09:05 老游条 阅读(335) 评论(0) 推荐(0) 编辑
  2014年7月1日
摘要: 最近得了一个项目,java开发的web项目,修改代码时,无论怎么改,都不生效;各种度娘,没用。原因是没有建立发布设定这个东西我开始不理解它的作用,现在知道了:mysqleclipse项目在一个目录,它编译的class在这个目录下面,而apache-tomcat又在另外一个目录,设置这个东西的作用就是... 阅读全文
posted @ 2014-07-01 13:34 老游条 阅读(1160) 评论(0) 推荐(0) 编辑
  2014年6月25日
摘要: function makeShare(url, title){ //http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A%2F%2Fwww.jiathis.com%2Fhelp%2Fhtml%2Fqzone-sh... 阅读全文
posted @ 2014-06-25 18:09 老游条 阅读(1363) 评论(0) 推荐(0) 编辑
  2014年6月3日
摘要: '.chr(10); } public static function ev_accept($socket, $flag, $base) { //echo __FILE__.'-'.__LINE__.''.chr(10); static $id = 0; $... 阅读全文
posted @ 2014-06-03 11:30 老游条 阅读(1196) 评论(0) 推荐(0) 编辑
  2014年5月23日
摘要: function gzdecode($data) { return gzinflate(substr($data,10,-8)); }因为项目要下载一个gzip压缩的网页,所以需要解压,手册上有一个gzdecode函数,但是php里面直接调用却无果!搜索之后发现是需要自己写。其实这个用户函数,... 阅读全文
posted @ 2014-05-23 15:49 老游条 阅读(169) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页