08 2014 档案
摘要:(1)函数指针:可以指向 一类 固定形参类型和返回值类型 的函数 的指针声明:int fun(int, int) || \/int (*pfun)(int, int)pfun就是函数指针(变量)调用: d = pfun(a, b); e = (*pfun)(a, b);#####指针函数int *f...
阅读全文
摘要: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...
阅读全文
摘要:==============变量类型nilnumber(实数) 1 2 3.14 7.65e8string "hello world" "\n"boolean(true false) true falsefunction*userdata and threadstable(1)默认key初始化t...
阅读全文
摘要:(1)添加文件核路径(2)库文件路径(3)main.cpp#include #include extern "C"{ #include #include #include }#pragma comment(lib, "lua51.lib")#pragma comment(lib, "lua5.1...
阅读全文
摘要: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...
阅读全文
摘要:##############缓冲区:e(:open) 打开新缓冲区:ls (:buffers) 列出列表内所有缓冲区/bs /bv /be(BufExplore快捷键):b 2(:buffer 2) 切换缓冲区:bnext/bn (Ctrl 6) 下一缓冲区:bprevious/bp ...
阅读全文

浙公网安备 33010602011771号