摘要: 1、准备 (1) Github仓库地址: https://github.com/eclipse/paho.mqtt.c https://github.com/eclipse/paho.mqtt.cpp (2) Visual Studio 2022以及CMake https://visualstudi 阅读全文
posted @ 2024-04-02 16:36 卡尔的思索 阅读(15) 评论(0) 推荐(0) 编辑
摘要: ```C++ // Integral type equal template typename std::enable_if::value, bool>::type Equal( const T& lhs, const T& rhs) { return lhs == rhs; } // Floati 阅读全文
posted @ 2023-07-24 10:28 卡尔的思索 阅读(8) 评论(0) 推荐(0) 编辑
摘要: ```C++ std::string executeShellCommand(const std::string &command) { FILE* pipe = popen(command.c_str(), "r"); if (!pipe) return "ERROR"; char buffer[ 阅读全文
posted @ 2023-06-16 09:29 卡尔的思索 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 要在Linux下实现一个定时器,可以使用以下两种方法: ## 使用系统提供的定时器API Linux系统提供了一些定时器API,如setitimer、timer_create、timer_gettime等,可以使用这些API来实现定时器。以setitimer为例,可以按照以下步骤来使用: 1.定义一 阅读全文
posted @ 2023-05-29 16:45 卡尔的思索 阅读(756) 评论(0) 推荐(0) 编辑
摘要: C++禁止函数拷贝和移动构造 阅读全文
posted @ 2023-05-14 16:30 卡尔的思索 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 网络字节序与主机字节序的互相转换 阅读全文
posted @ 2023-04-23 11:12 卡尔的思索 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 角度与弧度的相互转换 阅读全文
posted @ 2023-04-18 21:00 卡尔的思索 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 使用kubeadm安装k8s 阅读全文
posted @ 2023-03-13 17:07 卡尔的思索 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 内存调试工具 heaptrack Valgrind uprobe + perf 阅读全文
posted @ 2023-02-22 17:03 卡尔的思索 阅读(14) 评论(0) 推荐(0) 编辑
摘要: VS Code常用插件记录 阅读全文
posted @ 2023-02-17 14:04 卡尔的思索 阅读(38) 评论(0) 推荐(0) 编辑