上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 95 下一页
摘要: tolua++ 配置看到很多方法将lua和c++结合的办法,由于看到cegui使用的是tolua++,所以决定使用tolua++。1、下载tolua++www.codenix.com/~tolua/2、找到 tolua++-1.0.93\win32\vc7文件夹,编译程序生产tolua++.exe(我用的include和lib都是cegui里的,统一版本比较好)3、测试tolua++(下面是参照他人的http://blog.csdn.net/foruok/archive/2008/04/17/2301751.aspx)创建tarray.pkg文件:$#include "tarray. 阅读全文
posted @ 2013-01-08 17:49 byfei 阅读(1245) 评论(0) 推荐(0) 编辑
摘要: 工具ValgrindPurify 阅读全文
posted @ 2013-01-08 17:19 byfei 阅读(105) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/lqk1985/article/details/7190971 阅读全文
posted @ 2013-01-08 16:56 byfei 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Account = {balance = 0}function Account:new (o)o = o or {}setmetatable(o, self)self.__index = selfprint("This is Base")return oend... 阅读全文
posted @ 2013-01-08 16:56 byfei 阅读(34) 评论(0) 推荐(0) 编辑
摘要: Account = {balance = 0}function Account:new (o) o = o or {} setmetatable(o, self) self.__index = self print("This is Base") return oendfunction Account:deposit (v) self.balance = self.balance + vendfunction Account:withdraw (v) if v > self.balance then error"insufficient funds" 阅读全文
posted @ 2013-01-08 16:48 byfei 阅读(179) 评论(0) 推荐(0) 编辑
摘要: local _class={}function class(super) local class_type={} class_type.ctor=false class_type.super=super class_type.new=function(...) local obj={} do local create create = function(c,...) if c.super then create(c.super,...) end if c.ctor then c.ctor(obj,...) end e... 阅读全文
posted @ 2013-01-08 15:49 byfei 阅读(390) 评论(0) 推荐(0) 编辑
摘要: svnsubversionpath工作urlSVN(Subversion)是一个自由、开源的项目源代码版本控制工具。目前,绝大多数开源软件和企业代码管理,都使用SVN作为代码版本管理软件。Subversion将文件存放在中心版本库里,这个版本库很像一个普通的文件服务器。不同的是,它可以记录每一次文件和目录的修改情况,这样就可以在需要的回滚时,将数据恢复到以前的版本,并可以查看数据的更改细节。SVN 官方网址:Apache SubversionSVN 服务器配置:安装SVN服务器一、 SVN常用命令1、将文件checkout到本地目录svn checkout path(path是服务器上的目录) 阅读全文
posted @ 2013-01-07 17:09 byfei 阅读(241) 评论(0) 推荐(0) 编辑
摘要: http://0flyingpig0.blog.163.com/ 阅读全文
posted @ 2013-01-04 15:46 byfei 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 逻辑运算符认为false和nil是假(false),其他为真,0也是true.and的优先级比or高其它语言中的and表示两者都为真的时候,才返回为真,而只要有一个假,都返回假.lua虽不仅返回假的语义,还返回导致假的值.也就是说a and b在a为false的时候,返回a,否则返回b.or的处理与之类似,a or b在a为true的时候,返回a,否则返回b.总之,and与or返回的不仅有true/false的语义,还返回了它的值.a = nil b = 1 exp = 1 < 2 and a or b print(exp == a) --fales exp = 1 > 2 and 阅读全文
posted @ 2013-01-04 14:51 byfei 阅读(645) 评论(0) 推荐(0) 编辑
摘要: local _a1 = {20, 1, key1 = "hello", key2 = "world", lang = "lua"} print("the table _a1:") for _,v in pairs(_a1) do print(v) end local _a2 = { key1 = "hello new", key2 = "world new" } print("\nthe old table _a2:") for _,v in pairs( 阅读全文
posted @ 2013-01-04 11:45 byfei 阅读(2592) 评论(0) 推荐(0) 编辑
上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 95 下一页