摘要: search_callback({ "result":50000, "pageAct":500, "useTime":12.861029, "body": [ { "post_title":"日本留学生谈日本\“大学泡沫化\”", "post_summary":"日本留学生谈日本\“大学泡沫化\”恰好,前几天我去采访日本早稻田大学公共经营研究科教授福岛淑彦时谈到这个...", "post_url":"htt 阅读全文
posted @ 2011-06-12 21:45 wangkangluo1 阅读(252) 评论(0) 推荐(0) 编辑
摘要: var oCar = { "color": "red", "doors" : 4, "paidFor" : true };复杂数据格式:var company = {name: "Microsoft",product: "softwares",chairman: {name: "Bill Gates", age: 53, Married: true},employees: [{name: "Angel", age: 26, Marrie 阅读全文
posted @ 2011-06-12 21:42 wangkangluo1 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: <?phpclass Draw{private $im,$stu=FALSE; //protected $sets = array ( //可设置参数 "size" => array ( //图像大小 "width" => 900, "height" => 700 ), "position" => array ( //圆点位置 "x" =>50, "y" =>50 ), "lengths" => array 阅读全文
posted @ 2011-06-12 21:34 wangkangluo1 阅读(1286) 评论(0) 推荐(0) 编辑
摘要: 实例编译:gcc -g -Wall -O0 test.c -o test `pkg-config glib-2.0 --cflags --libs` -lscholar -legg2#include <egg2/Egg2.h>#include <scholar/ImLexAnalyzer.h>#include <scholar/ImTokenList.h>#include <scholar/ImCnLexAnalyzer.h>#include <scholar/ImCwsLexAnalyzer.h>int main(){HEGGDIR 阅读全文
posted @ 2011-06-11 15:33 wangkangluo1 阅读(1062) 评论(0) 推荐(0) 编辑
摘要: 良好的编程风格匈牙利命名法为C程序标识符的命名定义了一种非常标准化的方式,这种命名方式是以两条规则为基础的:a. 变量的名字以一个或者多个小写字母前缀开头,前缀能够体现变量数据类型、作用域等信息。b. 在标识符内,前缀以后就是一个或者多个第一个字母大写的单词,这些单词清楚地指出了该标识符的作用1)变量命名加前缀 c char s short n int nDoorNum l long b boolean取值只为真和假的整型变量 如 bValid f float 浮点数 d double a 数组 a[5]2)变量名中单词开头字母大写,其他字母小写 但是常用的意义明显的变量,如 i,j,k, 坐 阅读全文
posted @ 2011-06-11 12:06 wangkangluo1 阅读(713) 评论(0) 推荐(0) 编辑
摘要: C语言通用范例开发金典 飞思科技C++大学教程Python Tutorialpython核心编程汇编语言(第二版ruby-learn to program《Head First》系列Essential C++ /Beginning iPhone Development /Programming in Objective C /Thinking in C++(Java) /Programming Windows with MFC /Introduction to Boost /STL tutorial reference /Programming Windows代码大全2c++c++ 程序设.. 阅读全文
posted @ 2011-06-10 21:36 wangkangluo1 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 链表:#include <string.h>#include <stdlib.h>#include <stdio.h>typedef struct stu_listme stu_list;/*定义结构体*/struct stu_listme{ char* p_ch_data; stu_list* p_stu_next;};char* getform_list(stu_list* pHead, int nLim)/*取第k位数据*/ { char* p_ch_lim = NULL; int n_count = 1; stu_list* p_stu_point 阅读全文
posted @ 2011-06-10 16:31 wangkangluo1 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 4.3. Explanation of error messages from MemcheckDespite considerable sophistication under the hood, Memcheck can only really detect two kinds of errors: use of illegal addresses, and use of undefined values. Nevertheless, this is enough to help you discover all sorts of memory-management problems in 阅读全文
posted @ 2011-06-10 13:48 wangkangluo1 阅读(6602) 评论(0) 推荐(0) 编辑
摘要: valgrind --leak-check=full --show-reachable=yes --log-file=a.log ./shdaily.fcgi "op=search&date=2011-04-14&current=4"glib使用如下:G_SLICE=always-malloc valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 ./egg2Utest "ItfTest"常用命令详解:G_DEBUG=gc-fr 阅读全文
posted @ 2011-06-10 11:27 wangkangluo1 阅读(3407) 评论(0) 推荐(0) 编辑
摘要: vim 实用技术 之 八 c/h文件间相互切换 -- 插件: A下载地址http://www.vim.org/scripts/script.php?script_id=31版本安装将a.vim 放到 ~/.vim/plugin 文件夹中手册无下面介绍它的用法:作为一个C程序员, 日常Coding时在源文件与头文件间进行切换是再平常不过的事了, 直接用vim打开其源/头文件其实也不是什么麻烦事, 但是只用一个按键就切换过来了, 这是多么贴心的功能啊....安装好a.vim后有下面的几个命令可以用了::A在新Buffer中切换到c\h文件:AS横向分割窗口并打开c\h文件:AV纵向分割窗口并打开c 阅读全文
posted @ 2011-06-10 03:49 wangkangluo1 阅读(1480) 评论(0) 推荐(0) 编辑