GetProto()->ItemLevel 判断装备等级
HandleBattleFieldPortOpcode 进入战场,。 bool
ChatHandler::HandlegetHitemlvlCommand(const char* args){ Player* target; ...
分类:
其他好文 时间:
2014-05-28 04:11:14
阅读次数:
249
一、在C语言中,关键字static的作用:(1)设置变量的存储域,函数体内static变量的作用范围为该函数体,不同于auto变量,该变量的内存只被分配一次,因此其值在下次调用时仍维持上次的值;(2)限制变量的作用域,在模块内的static全局变量可以被模块内所用函数访问,但不能被模块外其它函数访问...
分类:
其他好文 时间:
2014-05-28 04:10:37
阅读次数:
197
刚才学了gethostbyname函数,这个gethostbyaddr函数的作用是通过一个IPv4的地址来获取主机信息,并放在hostent结构体中。#include
struct hostent * gethostbyaddr(const char * addr, socklen_t len,.....
分类:
其他好文 时间:
2014-05-28 01:46:42
阅读次数:
331
1、const char* p: p is a pointer to const char(char
const* p 一样) 意思就是不能通过p指针来修改p指向的内容(但是内容可以修改)。2、char* p : p is a pointer to char
意思就是可通过p指针来修改p指向的内容3...
分类:
其他好文 时间:
2014-05-26 17:30:58
阅读次数:
153
欧拉函数。结果一定用unsigned long long。 1 //Accepted 40148 KB
712 ms 2 #include 3 #include 4 const int MAXN = 5000005; 5 unsigned long long
phi[MAXN]; 6...
分类:
其他好文 时间:
2014-05-25 23:12:12
阅读次数:
252
#include#includeusing namespace std;const int
MaxVertexNum = 100; bool visited[MaxVertexNum];int relationNonDir[][2] =
{{0,1},{0,2},{1,2},{1,3},{2,6},...
分类:
其他好文 时间:
2014-05-25 23:10:52
阅读次数:
377
质因数分解。 1 //Accepted 0 KB 12 ms 2 #include 3
#include 4 #include 5 const int MAXN = 100005; 6 const int inf = 100000000; 7
int pri[MAXN]; 8 in...
分类:
其他好文 时间:
2014-05-25 23:10:33
阅读次数:
283
HDU 4832 Chess
思路:把行列的情况分别dp求出来,然后枚举行用几行,竖用几行,然后相乘累加起来就是答案
代码:
#include
#include
#include
using namespace std;
typedef long long ll;
const ll MOD = 9999991;
const int N = 1005;
int t, n, m, ...
分类:
其他好文 时间:
2014-05-25 21:55:04
阅读次数:
280
1001
暴力
#include
#include
#include
using namespace std;
const int maxn = 100100;
int ll[maxn], rr[maxn];
struct node
{
int x, y, bj;
}e[maxn];
int main()
{
int cas = 1;
int T;
scanf("%d...
分类:
其他好文 时间:
2014-05-25 21:32:50
阅读次数:
268
#import int main(int argc, const char *
argv[]){ @autoreleasepool { //block的规则 //返回值类型(^block名称)(形参参数列表)一般形参变量名不用写=
^返回值类型(实参数列表){block体}...
分类:
其他好文 时间:
2014-05-25 20:37:16
阅读次数:
193