自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 问答 (1)
  • 收藏
  • 关注

原创 C#列表去重 Distinct with a custom equality comparer

http://www.levibotelho.com/development/distinct-with-a-custom-equality-comparer/static void Main(string[] args){ var doubles = new[] {1, 1.01, 2, 2.01, 3 }; var distinctDoubles = doubles.Distinct(new DoubleComparer()); foreach (var distinctDo

2022-04-28 19:53:06 74

原创 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 399

原创 试用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 790

原创 自动更新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 823

原创 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 101

原创 关于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 63

原创 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 601

原创 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 58

原创 使用 DEF 文件从 DLL 导出

https://docs.microsoft.com/zh-cn/cpp/build/exporting-from-a-dll-using-def-files?view=msvc-160取代__declspec(dllexport)关键字

2021-04-14 19:23:17 152

原创 C#与C++程序文档生成工具

C#与C++程序文档生成Doxygen c++https://www.doxygen.nl/index.htmlDocFX c#https://dotnet.github.io/docfx/

2021-04-09 09:04:41 88

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除