摘要:
https://www.howtogeek.com/673729/heres-why-the-new-windows-10-terminal-is-amazing alt shift 和 - 水平分割 + 垂直分割 alt 和 up down left right 移动焦点 alt shift 和 阅读全文
摘要:
qmake install files (拷贝文件) QT += widgets HEADERS += hello.h SOURCES += hello.cpp \ main.cpp target.path=./zcb # will create ./zcb dir cpp.files= ./*.c 阅读全文
摘要:
真实生活举例 适配器分类 对象适配器(非继承) 适配器实现了其中一个对象的接口,并对另一个对象进行封装。所有流行的编程语言都可以实现适配器。 #include <iostream> // Target 客户期待的接口,可以是具体类,抽象类,接口类 class Target { public: vir 阅读全文
摘要:
#include <iostream> class Demo { public: int* a; }; /** int * f() { Demo d; d.a = new int(1); std::cout << "addr: "<< d.a<<" "<< *d.a << std::endl; // 阅读全文
摘要:
汉诺塔问题 次数问题 #include <iostream> using namespace std; /* 将n个盘子从x搬到z 可以转化为 先n上方n-1个盘子搬到y,再把n这个盘子搬到z,最后将n-1个盘子从y搬到z。依次类推。 即f(n) 的问题可以转化为f(n-1)的问题,...,f(1) 阅读全文
摘要:
--全部 select * from task_detail; --今天 select * from task_detail where date >= date('now', 'localtime'); --前一天 select * from task_detail where date >= d 阅读全文
摘要:
grpc 官方文档 https://grpc.io/docs/ https://grpc.io/docs/what-is-grpc/introduction/ https://grpc.io/docs/what-is-grpc/core-concepts/ In gRPC, a client app 阅读全文
摘要:
排序: 先按箱子高度排序,再按箱子面积排序 # 先按箱子高度排序,再按箱子面积排序 #include <iostream> #include <vector> #include <algorithm> using namespace std; struct Rect{ double l; doubl 阅读全文
摘要:
json nlohmann的一个json.hpp https://github.com/nlohmann/json #include "nlohmann/json.hpp" using nlohmannJson = nlohmann::json; int main() { nlohmannJson 阅读全文
摘要:
模式 VIM中分为三种模式: 1,普通模式 2, 编辑模式 3,命令模式 平时所说的快捷键指的是在普通模式下 普通模式-快捷键-光标导航 光标按位移动 下上左右 j k h l 光标按字移动 前后 w b 光标回到第一行第一字符 gg 光标回到最后一行第一字符 G 光标移动到指定行第一字符 <行号> 阅读全文