摘要: 阅读全文
posted @ 2015-02-27 17:06 huangshi8421 阅读(107) 评论(0) 推荐(0) 编辑
摘要: ====================================请求消息例:http://www.baidu.com:80/index.html*******请求方法GET /index.html?Datetime=2014-12-15%2010:45:35 HTTP/1.1 #GET提交... 阅读全文
posted @ 2014-12-15 12:32 huangshi8421 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 安装apt-get install tightvncserver tightvnc-java启动vncserver -name vnc_raspi -depth 24 -geometry 800x600 -httpport 9001 :1-name vnc_raspi 桌面名字,这个参数非必要-de... 阅读全文
posted @ 2014-09-18 13:44 huangshi8421 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 依赖apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 execstack libelfg0下载解包wget www.xxxx/xxx/xxx/linux-... 阅读全文
posted @ 2014-09-17 14:49 huangshi8421 阅读(246) 评论(0) 推荐(0) 编辑
摘要: ==========================================手动编译卸载受限驱动 :apt-get --purge remove nvidia-*apt-get --purge remove nvidia-glx nvidia-glx-new 系统安装了光盘自带的受限驱动。安... 阅读全文
posted @ 2014-09-17 14:39 huangshi8421 阅读(484) 评论(0) 推荐(0) 编辑
摘要: (1)函数指针:可以指向 一类 固定形参类型和返回值类型 的函数 的指针声明:int fun(int, int) || \/int (*pfun)(int, int)pfun就是函数指针(变量)调用: d = pfun(a, b); e = (*pfun)(a, b);#####指针函数int *f... 阅读全文
posted @ 2014-08-15 14:35 huangshi8421 阅读(329) 评论(0) 推荐(0) 编辑
摘要: assert(loadstring("math.max(7,8,9)"))dofile("scripts/xxx.lua")math.floor()math.random() math.random(10, 100)math.min(3,4,5) math.max(2,3,4)num = tonum... 阅读全文
posted @ 2014-08-12 17:40 huangshi8421 阅读(227) 评论(0) 推荐(0) 编辑
摘要: ==============变量类型nilnumber(实数) 1 2 3.14 7.65e8string "hello world" "\n"boolean(true false) true falsefunction*userdata and threadstable(1)默认key初始化t... 阅读全文
posted @ 2014-08-12 17:39 huangshi8421 阅读(174) 评论(0) 推荐(0) 编辑
摘要: (1)添加文件核路径(2)库文件路径(3)main.cpp#include #include extern "C"{ #include #include #include }#pragma comment(lib, "lua51.lib")#pragma comment(lib, "lua5.1... 阅读全文
posted @ 2014-08-12 17:37 huangshi8421 阅读(140) 评论(0) 推荐(0) 编辑
摘要: function quick_sort(list, head, tail) if tail > head then i = head j = tail tmp = list[i] --取第一个元素用于比较 同时腾出第一个位置 while i i do if list[j] tmp then li... 阅读全文
posted @ 2014-08-11 18:16 huangshi8421 阅读(468) 评论(0) 推荐(0) 编辑