摘要: C++ visit #include <iostream> struct Output { int m_i{8}; template<typename F> void visit(F& f) { f(this->m_i); } template<typename F> void visit(F& f 阅读全文
posted @ 2022-10-25 12:08 牛博张 阅读(43) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <unistd.h>#include <csignal>#include <string.h> using namespace std; void signal_handler(int signal){ cout << "Caught sign 阅读全文
posted @ 2022-10-21 16:35 牛博张 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 一篇有意思的文章,原文连接:https://blog.csdn.net/bluebird_shao/article/details/124107386 阅读全文
posted @ 2022-09-29 11:30 牛博张 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Cmake介绍官方文档:https://cmake.org/overview/Cmake API手册:https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html?highlight=cmake_minimum_req 阅读全文
posted @ 2022-09-22 15:27 牛博张 阅读(634) 评论(0) 推荐(0) 编辑
摘要: tcpdump和ethereal可以用来获取和分析网络通讯活动,他们都是使用libpcap库来捕获网络封包的。​在混杂模式下他们可以监控网络适配器的所有通讯活动并捕获网卡所接收的所有帧。​要想设置网络接口为混杂模式并执行这些命令来捕获所有的网络封包,需要具有超级用户的权限。你可以使用这些工具来探究网 阅读全文
posted @ 2022-09-22 11:53 牛博张 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/linuxAndMcu/p/10655330.html#_label2 CMake简介与在Linux环境下简单使用CMake的示例 目录 一、CMake简介 二、安装CMake 三、最简单的例子:HelloWorld 四、基本语法规则 五、内部构 阅读全文
posted @ 2022-08-26 09:23 牛博张 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://www.cnblogs.com/relaxease/p/16027916.html C++的左值和右值 摘要 C++语言中的左值和右值是困扰我的知识点,今天将学习到的知识点整理一下,以理清概念。本文首先介绍了左值、右值的一般分类和概念,包括广义左值,将亡值和纯右值,然后介绍 阅读全文
posted @ 2022-07-09 10:57 牛博张 阅读(143) 评论(0) 推荐(0) 编辑
摘要: ubuntu在sudo apt-get update the public key is not available 阅读全文
posted @ 2021-12-18 18:54 牛博张 阅读(996) 评论(0) 推荐(0) 编辑
摘要: dump xxx.so中的符号表, dump命令根据自己的需求选择合适的: 1. 导出符号表命令1:./arm-himix200-linux-objdump -d /home/username/work/sample.so > /home/username/libxx_sample.txt 2. 导 阅读全文
posted @ 2021-12-07 22:05 牛博张 阅读(1022) 评论(0) 推荐(0) 编辑
摘要: 本文转自:https://blog.csdn.net/weixin_42442319/article/details/115523072 1. 内置的转换函数 #include <iostream> #include <string> using namespace std; int main() 阅读全文
posted @ 2021-11-22 21:39 牛博张 阅读(372) 评论(0) 推荐(0) 编辑