
C/C++
文章平均质量分 51
HkXtUg
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用VS2017/2019开发管理Linux项目遇到的无法连接Linux主机的问题的解决
问题 VS 连接失败, 提示 “Connectivity Failure. Please make sure host name and port number are correct”. 但其他 SSH 工具能够成功连接,只是连接的时间比较长 软件及环境 VMware Workstation Pro 14 + Centos 7.6 x86_64 Windows 10 Pro 1909 + Vis...原创 2019-12-12 15:15:03 · 2899 阅读 · 2 评论 -
Base64编码/解码[C/C++]
#include <windows.h> #include <cstdint> #include <cassert> #include <iostream> #include <clocale> #define _TEST const char base64Table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"...原创 2018-10-20 18:17:17 · 370 阅读 · 0 评论 -
计算字符串长度[C++/ASM]
#include <iostream> #include <windows.h> #include <chrono> /* \主要使用指令 repne scasb, 如果使用repne scasd应该能更快 */ __declspec(naked) DWORD WINAPI StringLength1(LPCSTR pszStr) { _...原创 2018-10-20 00:03:35 · 567 阅读 · 0 评论 -
蚂蚁笔记.leanote转为知笔记支持的MD文档
本人搭建的蚂蚁笔记服务器最近被黑, 怀疑是蚂蚁笔记漏洞导致. ----------------------------------------------------------------- 所以现在转为知笔记了. 不过,为知笔记不支持蚂蚁笔记的 .leanote格式(实质就是JSON数据格式), 虽然也有支持HTML, 但是两者不知为什么并不兼容, 蚂蚁笔记导出的html在为知里面就只显原创 2018-01-12 11:32:04 · 4418 阅读 · 3 评论 -
经典排序算法练习
直接插入排序#include <iostream>// 打印列表 template<typename T> void print(T arr[], int len){ using namespace std; for(int i = 0; i < len; cout << arr[i] << " ", i++); cout << endl; }// 直接插入排序 templa原创 2017-09-17 14:44:20 · 338 阅读 · 0 评论 -
QtXlsx在Windows x64下的编译配置及使用
QtXlsx 是一个在Qt框架下使用的三方库. 可以很方便的对Excel文档进行读写等操作.且是跨平台的. 需要做报表时, 这是一个十分不错的选择哦. 官当网站: http://qtxlsx.debao.me/ Git托管: https://github.com/dbzhang800/QtXlsxWriter 许可证: - ---编译环境------原创 2017-06-09 12:59:32 · 6134 阅读 · 3 评论 -
建造者设计模式
看了这个Java实现: http://blog.youkuaiyun.com/lfdfhl/article/details/77851646 用C++练习下. #include #include #include using namespace std; /* 产品类 */ struct Fruit{ string color; string name; int原创 2017-09-07 01:25:41 · 301 阅读 · 0 评论 -
C++中变量的初始化
来自 http://zh.cppreference.com/w/cpp/language/initialization. 以下为个人备忘, 并不完全. 未免误导, 请移至原文. 概述 变量的初始化即在构建变量、分配空间时赋予一个初始的值. 这可能发生在声明定义变量时、使用new expression动态分配变量存储空间时. 当然在函数调用中有传参及返回值时也会发生. 一般来说, 声明器(init转载 2017-08-27 19:47:20 · 633 阅读 · 0 评论 -
强大的VIM配置文件
Mark vim配置文件转载 2016-11-29 12:41:11 · 407 阅读 · 0 评论