C++
parleychou
这个作者很懒,什么都没留下…
展开
-
C++与C#的Base64格式的转换
C++:编码:// Base64 编码void Base64Encode(const std::string &input, std::string &output){ //编码表 const char EncodeTable[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; //返回值 size_t DataByte = input.size(); const char* D原创 2022-03-07 17:55:21 · 421 阅读 · 0 评论 -
试用wix制作软件安装包
WIX官网https://wixtoolset.org/WIX安装包下载路径https://github.com/wixtoolset/wix3/releases/tag/wix3112rtmhttps://wixtoolset.org/releases/注意安装软件需要有.net framework3.5的环境,因此在windows控制面板下,找到程序和功能找到启动.NET Framework3.5进行安装...原创 2022-01-07 15:23:05 · 830 阅读 · 0 评论 -
自动更新C++项目的版本号
https://www.cnblogs.com/bugchecker/p/auto-add-version-num-on-each-build-under-visual-studio.html注意要用记事本打开rc文件进行修改原创 2022-01-07 11:20:54 · 864 阅读 · 0 评论 -
freetype263在visual studio2019编译出错的问题
参考:http://savannah.nongnu.org/bugs/index.phpafscript.h中的第44行,注释加上空格 /* there are no simple forms for letters; we thus use two digit shapes */ SCRIPT( beng, BENG, "Bengali", HB_SCRIPT_BENGALI, HINTING_TOP_TO_BOTTOM,原创 2021-09-17 22:02:28 · 119 阅读 · 0 评论 -
关于C++ Algorithm的例子
#include <iostream>#include <map>#include <deque>#include <algorithm>//迭代器的累加void Iterator(){ std::map<int, int> ms{ {1, 100}, {2,200},{3,300},{4,400} }; std::map<int, int>::iterator ite1; std::map<i原创 2021-09-08 16:14:33 · 67 阅读 · 0 评论 -
cpp判断文件夹是否存在,创建文件夹
#include <io.h>#include <direct.h>#include <string>int main(){ std::string prefix = "G:/test/"; if (_access(prefix.c_str(), 0) == -1) //如果文件夹不存在 _mkdir(prefix.c_str()); //则创建}原创 2021-08-16 16:08:56 · 630 阅读 · 0 评论 -
C++内存管理
C++ 内存管理构建几个类和结构体:class UpperClass{public: int a; int b; int c;};struct UpperStruct{public: int a; int b; int c;};class DownClass{public: int d; int e; int f;};class DownStruct{public: int d; int e; int f;};class DownTClas原创 2021-05-26 10:53:49 · 60 阅读 · 0 评论