上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 95 下一页
摘要: 如果你要从配置里面取一个属性,需要修改这个属性,注意不要把配置的属性修改掉了。取的是配置的指针属性,需要弄个临时属性来修改计算。 int nLuckValue = WingsAngelCfg.m_Config.nWing[nLevel].nLuck; double percentage = ... 阅读全文
posted @ 2016-09-27 12:47 byfei 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 获取某位的值,从低位到高位(右到左) // test.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include using namespace std; int ok(int n,int _Mask) { _Ma... 阅读全文
posted @ 2016-09-26 19:35 byfei 阅读(1848) 评论(0) 推荐(0) 编辑
摘要: 低到高(左到右) // test.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include using namespace std; void ok(int n,int _Mask) { _Mask = _Mas... 阅读全文
posted @ 2016-09-26 17:45 byfei 阅读(496) 评论(0) 推荐(0) 编辑
摘要: // test.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include using namespace std; #define MAX_ACHIEVE_DATA_SIZE 256 //成就的最大的BYTE... 阅读全文
posted @ 2016-09-25 16:12 byfei 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-09-24 11:53 byfei 阅读(338) 评论(0) 推荐(0) 编辑
摘要: // test.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include typedef union tagGameAttributeValue { int nValue; unsigned int uValue; float ... 阅读全文
posted @ 2016-09-24 11:49 byfei 阅读(188) 评论(0) 推荐(0) 编辑
摘要: SQL语言是非过程化语言,大部分语句的执行与其前面或后面的语句无关,而一些高级编程语言都是基于如循环,条件等结构的过程化语言,尽管SQL语言非常有力,但它却没有过程化能力·若把SQL语言嵌入到过程化的编程语言中,则利用这些结构,程序开发人员就能设计出更加灵活的应用系统,具有SQL语言和高级编程... 阅读全文
posted @ 2016-09-24 09:54 byfei 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 现在很多手机游戏中的聊天系统都加入语音聊天的功能,相比于传统的文字聊天,语音聊天在MMORPG中显得尤为重要,毕竟直接口头交流总比你码字快得多了,也更直观些。 在游戏中实现语音聊天和语音转化成文字 点击打开链接 游戏的语音通话解决方案 点击打开链接 Unity3D 实现简单的语... 阅读全文
posted @ 2016-09-22 12:23 byfei 阅读(230) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;class base{public: virtual void f() { cout f2(); //如果二个子类是很复杂的,很多时候这里就会报错 */ if(b->type == 2) //正确的使用方式应该判断... 阅读全文
posted @ 2016-09-20 01:30 byfei 阅读(173) 评论(0) 推荐(0) 编辑
摘要: for i = 1, 100 do while true do if i % 2 == 1 then break end -- 这里有一大堆代码 -- -- break end end Lua 里没有... 阅读全文
posted @ 2016-07-12 10:09 byfei 阅读(203) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 95 下一页