返回顶部
上一页 1 2 3 4 5 6 ··· 28 下一页
摘要: qmake install files (拷贝文件) QT += widgets HEADERS += hello.h SOURCES += hello.cpp \ main.cpp target.path=./zcb # will create ./zcb dir cpp.files= ./*.c 阅读全文
posted @ 2022-06-02 00:45 Zcb0812 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 真实生活举例 适配器分类 对象适配器(非继承) 适配器实现了其中一个对象的接口,并对另一个对象进行封装。所有流行的编程语言都可以实现适配器。 #include <iostream> // Target 客户期待的接口,可以是具体类,抽象类,接口类 class Target { public: vir 阅读全文
posted @ 2022-05-31 13:43 Zcb0812 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #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; // 阅读全文
posted @ 2022-05-28 16:57 Zcb0812 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 汉诺塔问题 次数问题 #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) 阅读全文
posted @ 2022-05-03 16:06 Zcb0812 阅读(27) 评论(0) 推荐(0) 编辑
摘要: --全部 select * from task_detail; --今天 select * from task_detail where date >= date('now', 'localtime'); --前一天 select * from task_detail where date >= d 阅读全文
posted @ 2022-04-18 15:42 Zcb0812 阅读(888) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-01-01 22:16 Zcb0812 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 排序: 先按箱子高度排序,再按箱子面积排序 # 先按箱子高度排序,再按箱子面积排序 #include <iostream> #include <vector> #include <algorithm> using namespace std; struct Rect{ double l; doubl 阅读全文
posted @ 2021-12-30 12:03 Zcb0812 阅读(321) 评论(0) 推荐(0) 编辑
摘要: json nlohmann的一个json.hpp https://github.com/nlohmann/json #include "nlohmann/json.hpp" using nlohmannJson = nlohmann::json; int main() { nlohmannJson 阅读全文
posted @ 2021-12-12 18:05 Zcb0812 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 模式 VIM中分为三种模式: 1,普通模式 2, 编辑模式 3,命令模式 平时所说的快捷键指的是在普通模式下 普通模式-快捷键-光标导航 光标按位移动 下上左右 j k h l 光标按字移动 前后 w b 光标回到第一行第一字符 gg 光标回到最后一行第一字符 G 光标移动到指定行第一字符 <行号> 阅读全文
posted @ 2021-11-29 11:47 Zcb0812 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Qt 优秀视频资源 1,链接:https://pan.baidu.com/s/1SNkIkEFAOCjZYbq4YqxM3w 提取码:qzk1它里面使用Python作为开发语言,使用PyQt5来大体的介绍了QWidget相关的各个类的使用,比较适合入门 2,https://www.bilibili. 阅读全文
posted @ 2021-11-29 09:44 Zcb0812 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 28 下一页