摘要: 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) 编辑