摘要:function n_serialize(data)	if type(data)=="number" then io.write(data,"\n")	elseif type(data)=="string" then io.write(string.format(...
        阅读全文
        
            posted @ 2015-08-05 10:37
|  | |
| 随笔分类 - Lua
摘要:function n_serialize(data)	if type(data)=="number" then io.write(data,"\n")	elseif type(data)=="string" then io.write(string.format(...
        阅读全文
 
            posted @ 2015-08-05 10:37 
摘要:C++代码:// LuaAndC.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std; extern "C" { #include "lua...
        阅读全文
 
            posted @ 2015-08-04 13:37 
摘要:C++代码:// LuaAndC.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std; extern "C" { #include "...
        阅读全文
 
            posted @ 2015-08-04 11:38 
摘要:C++代码:// LuaAndC.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std; extern "C" { #include "...
        阅读全文
 
            posted @ 2015-08-04 10:34 
摘要:编译静态库:1.新建Win32控制台应用程序Lua5.3,下一步,应用程序类型选择:DLL,空项目,完成。2.项目名右键属性,配置属性--项目默认值--配置类型:静态库(.lib)3.头文件上右键添加现有项,添加所有.h文件4.源文件上右键添加现有项,添加所有.c文件...
        阅读全文
 
            posted @ 2015-08-03 16:42 
摘要:--Table当Map使用var={name="a",sex=1,age=18}for key,var in pairs(var) do print(key,var)end--Table当数组使用arr={1,1,2,3,"hello"}table.ins...
        阅读全文
 
            posted @ 2015-07-31 14:48 
 | |