会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
byfei
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
···
95
下一页
2020年9月4日
[手游项目5]windows获得当前进程名
摘要: #include #include #include using namespace std;void SplitString2Int(const string& src, string delimit, vector& vecRet){ string nul...
阅读全文
posted @ 2020-09-04 13:41 byfei
阅读(181)
评论(0)
推荐(0)
2020年8月30日
【软件安装】c++11安装
摘要: #!/bin/bashyum install -y zip* unzip* wget* gdb lrzsz#gmp安装cd /tmpwget ftp://ftp.gnu.org/gnu/gmp/gmp-6.1.0.tar.bz2 tar -jxvf gmp-...
阅读全文
posted @ 2020-08-30 00:47 byfei
阅读(815)
评论(0)
推荐(0)
【软件安装】glibc安装
摘要: 可能的错误/lib64/libc.so.6: version `GLIBC_2.14' not found strings /lib64/libc.so.6 |grep GLIBC_https://blog.csdn.net/ai2000ai/article/...
阅读全文
posted @ 2020-08-30 00:44 byfei
阅读(778)
评论(0)
推荐(0)
【软件安装】GNU安装
摘要: http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gztar -zxvf bash-5.0.tar.gzcd bash-5.0./configure && make && make installmv /bin/bash /bi...
阅读全文
posted @ 2020-08-30 00:41 byfei
阅读(201)
评论(0)
推荐(0)
2020年8月20日
【手游项目4】XP工作集支持
摘要: Here is a summary on how to install the toolset:Bring up the Visual Studio installer (Tools -> Get Tools and Features)Select Deskt...
阅读全文
posted @ 2020-08-20 12:38 byfei
阅读(56)
评论(0)
推荐(0)
2020年7月8日
【手游项目4】过滤特殊字符,游戏账号名,玩家游戏名,数据库特殊字符检测
摘要: //过滤特殊字符会导致数据库存储失败 空格、制表符、回车符、换行符组成的字符串inline bool CheckNameVaild( const char* pStrName ){ int nLen = strlen(pStrName); if(nLen = ...
阅读全文
posted @ 2020-07-08 23:53 byfei
阅读(179)
评论(0)
推荐(0)
【手游项目4】计算两个经纬度间的距离,应用于开房游戏限制判断
摘要: //计算两个经纬度间的距离double D_jw(double wd1, double jd1, double wd2, double jd2){ double x, y, out; double PI = 3.14159265; double R = 6.3...
阅读全文
posted @ 2020-07-08 23:50 byfei
阅读(0)
评论(0)
推荐(0)
2020年6月26日
【手游项目4】手动拆包逻辑
摘要: 比如我们和前端互通的包大小限制是4K,如果发一个大于4K的包就无法发送,这时候就需要和前端拆包和包。 bool LobbyServer::SendPbMsgToClient(PlayerNode *lpPlayerNode, unsigned short ty...
阅读全文
posted @ 2020-06-26 23:23 byfei
阅读(157)
评论(0)
推荐(0)
2020年6月12日
【手游项目4】数据库navicat.exe -自动编码打开乱码问题
摘要: 问题描述 前后端用的UTF8,前后端正常,navicat.exe编辑链接->高级->选择UTF8也不乱码,但是选择自动就乱码。 现在我们后台那边也乱码,所以我怀疑自动编码就是mysql默认编码。 我 vi /etc/my.cnf 设置了编码也没用。最后试着修...
阅读全文
posted @ 2020-06-12 20:44 byfei
阅读(108)
评论(0)
推荐(0)
2020年6月4日
【手游项目4】windows和linux通用时间管理类封装
摘要: #pragma once#ifdef _WIN32#include #else#include #endif#include typedef unsigned long long uint64;namespace Extralib{ namespace Tim...
阅读全文
posted @ 2020-06-04 21:19 byfei
阅读(91)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
95
下一页
公告