- 博客(0)
- 资源 (7)
- 收藏
- 关注
简单实用高效的游戏屏蔽字算法
// 代码片段:
#include "stdafx.h"
#include <set>
#include <unordered_map>
#include <string>
typedef struct stactstr
{
char* buff;
int bufferlength;
int offset;
char front()
{
return *( buff+offset);
}
int size()
{
return bufferlength - offset;
}
stactstr substr(int c)
{
stactstr t;
t.buff = buff;
t.offset = offset + c;
t.bufferlength = bufferlength;
return t;
}
}stactstr;
typedef struct stchatnode
{
char c;
bool isbadword;
stchatnode()
{
2023-11-10
msvcrxxxx大集合
msvcp60 msvcr71 msvcp100,msvcp100d,msvcp120,msvcp140,msvcr100,msvcr100d,msvcr120,刚发现一点问题,撤销
2019-03-20
luaa星寻路代码
使用例子:
require "astar"
local way=AstarFindWay(1,1,2,2,{})
print("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..tostring(way))
way就是寻路的内容了输入参数分别是起始点x,y,目标点x,y,生物集合
地图信息在astar文件中的BlockTableToZeroStart写死的
2018-04-26
udp sendto耗时问题
2023-02-02
TA创建的收藏夹 TA关注的收藏夹
TA关注的人