上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 66 下一页
摘要: Set = {}Set.mt = {}--定义普通的表作为元表,为了避免命名污染直接放在Set内部function Set.new(t) local set = {} setmetatable(set, Set.mt)--一组相关的表共享一个metatable(通过这个可以描述他们共同的... 阅读全文
posted @ 2015-03-09 15:44 zzyoucan 阅读(258) 评论(0) 推荐(0) 编辑
摘要: #include #include #define MAX_COLOR 255 extern "C"{#include "lua-5.2.2/src/lauxlib.h"#include "lua-5.2.2/src/lualib.h"#include "lua-5.2.2/src/ls... 阅读全文
posted @ 2015-03-09 11:42 zzyoucan 阅读(1962) 评论(0) 推荐(0) 编辑
摘要: #include #define MAX_COLOR 255 extern "C"{#include "lua-5.2.2/src/lauxlib.h"#include "lua-5.2.2/src/lualib.h"#include "lua-5.2.2/src/lstate.h"}i... 阅读全文
posted @ 2015-03-09 00:05 zzyoucan 阅读(6141) 评论(0) 推荐(0) 编辑
摘要: #include extern "C"{#include "lua-5.2.2/src/lauxlib.h"#include "lua-5.2.2/src/lualib.h"#include "lua-5.2.2/src/lstate.h"}//lua与c交互栈的索引,假如栈中有5个元素//5 -1... 阅读全文
posted @ 2015-03-08 19:56 zzyoucan 阅读(724) 评论(1) 推荐(0) 编辑
摘要: VS用了这么久都没有这样的问题,昨天突然发现在自己电脑时间不对了,就调了下,以后这问题都来了。每次运行项目都要重新编译下,不管改不改底层代码。这让我很痛苦,浪费大量时间,找了好久才得到答案:1.时间问题 所创建的文件的时间比如是:2011-09-22 09:03:22,那么你的系统时间之前被你... 阅读全文
posted @ 2015-03-06 17:40 zzyoucan 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 过来这几天身体一直不舒服,一直没有调整过来。 阅读全文
posted @ 2015-03-04 23:45 zzyoucan 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 今天luastudio到期了,网上找破解版的吗的没有,其他工具太差了,要不就是不支持5.2,搞了好长时间,想买一个太贵了,我想能不能不这么坑 阅读全文
posted @ 2015-03-04 23:44 zzyoucan 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #include #include extern "C"{#include "lua-5.2.2/src/lua.h"#include "lua-5.2.2/src/lauxlib.h"#include "lua-5.2.2/src/lualib.h"}//定义库函数static int l_dir... 阅读全文
posted @ 2015-03-02 14:51 zzyoucan 阅读(567) 评论(0) 推荐(0) 编辑
摘要: #include #include extern "C"{/*头文件lua.h定义了Lua提供的基础函数,包括创建Lua环境、调用Lua函数、读写Lua环境中全局变量,以及注册供Lua调用的新函数等等*/#include "lua-5.2.2/src/lua.h"/*头文件lauxlib.h定义了辅... 阅读全文
posted @ 2015-03-02 10:58 zzyoucan 阅读(4392) 评论(0) 推荐(0) 编辑
摘要: 单看简单工厂,工厂方法,抽象工厂定义和网上的一些小例子不难,但在我们项目里面和经理写的一个关于包的使用的一个抽象工厂完全傻眼了但看这三种工厂模式http://www.jellythink.com/archives/category/programdesign/designpattern 讲的很好我们... 阅读全文
posted @ 2015-02-26 17:25 zzyoucan 阅读(209) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 66 下一页