<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[jndingxin的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/jndingxin</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; jndingxin]]></copyright><item><title><![CDATA[C++学习------lambda表达式]]></title><link>https://blog.csdn.net/jndingxin/article/details/155413086</link><guid>https://blog.csdn.net/jndingxin/article/details/155413086</guid><author>jndingxin</author><pubDate>Sun, 30 Nov 2025 10:41:04 +0800</pubDate><description><![CDATA[优势说明简洁性无需单独定义函数局部性逻辑紧贴使用处闭包能力捕获环境变量，实现状态保持泛型支持C++14+ 支持auto参数STL 友好完美适配算法、容器、线程等✅现代 C++ 编程中，lambda 是不可或缺的工具！]]></description><category></category></item><item><title><![CDATA[C++学习------空指针常量nullptr]]></title><link>https://blog.csdn.net/jndingxin/article/details/155412403</link><guid>https://blog.csdn.net/jndingxin/article/details/155412403</guid><author>jndingxin</author><pubDate>Sun, 30 Nov 2025 10:27:50 +0800</pubDate><description><![CDATA[✅在 C++11 及以后，永远使用nullptr表示空指针！消除了0NULL的类型安全隐患提高了代码可读性和健壮性是现代 C++ 的标准实践指针为空用nullptr，告别NULL和0！]]></description><category></category></item><item><title><![CDATA[C++学习------结构体总大小是怎么计算的？]]></title><link>https://blog.csdn.net/jndingxin/article/details/155384862</link><guid>https://blog.csdn.net/jndingxin/article/details/155384862</guid><author>jndingxin</author><pubDate>Sat, 29 Nov 2025 12:22:45 +0800</pubDate><description><![CDATA[对齐看最大，成员按序排，中间填 padding，末尾补到倍。从偏移 0 开始；对每个成员：找到 ≥ 当前偏移 且 满足该成员对齐要求的地址；插入 padding 到该地址；放置成员；所有成员放完后，总大小 = 最后一个成员结束位置；将总大小向上对齐到最大成员对齐值的整数倍。]]></description><category></category></item><item><title><![CDATA[C++学习------const可以定义函数而define不可以]]></title><link>https://blog.csdn.net/jndingxin/article/details/155380093</link><guid>https://blog.csdn.net/jndingxin/article/details/155380093</guid><author>jndingxin</author><pubDate>Sat, 29 Nov 2025 10:42:07 +0800</pubDate><description><![CDATA[模拟函数式宏（function-like macro）这里要分清楚const特性#define宏constconstexpr函数是真正的函数？❌ 否（文本替换）✅ 是类型安全？❌ 否✅ 是支持重载？❌ 否✅ 是（函数重载）有作用域？❌ 全局✅ 有（命名空间、类）可调试？❌ 困难✅ 可设断点能用于编译期计算？⚠️ 有限（靠展开）✅constexpr支持能修饰成员函数？❌✅const成员函数。]]></description><category></category></item><item><title><![CDATA[C++学习------指针与引用相比有哪些潜在风险?]]></title><link>https://blog.csdn.net/jndingxin/article/details/155377282</link><guid>https://blog.csdn.net/jndingxin/article/details/155377282</guid><author>jndingxin</author><pubDate>Sat, 29 Nov 2025 09:36:18 +0800</pubDate><description><![CDATA[风险类型指针引用空值风险✅ 高（需手动检查）❌ 无（必须有效）悬空风险✅ 高（易误用）⚠️ 低（难无意制造）语义模糊✅ 是（所有权/可选性不明）❌ 否（意图清晰）越界/算术错误✅ 可能❌ 不可能安全性较低较高✅结论引用比指针更安全、语义更清晰，应作为函数参数传递类对象的默认选择。只有在明确需要表达“可为空”、“重绑定”或与底层系统交互时，才使用指针，并需格外小心空指针和生命周期问题。如果你正在设计 API，优先问自己：“这个参数是否可能为空？如果不可能为空→ 用。]]></description><category></category></item><item><title><![CDATA[C++学习------为什么推荐使用引用（尤其是 const 引用）？]]></title><link>https://blog.csdn.net/jndingxin/article/details/155377140</link><guid>https://blog.csdn.net/jndingxin/article/details/155377140</guid><author>jndingxin</author><pubDate>Sat, 29 Nov 2025 09:33:22 +0800</pubDate><description><![CDATA[在大多数情况下，将类对象作为参数传递时使用const T&大型对象只读访问性能敏感代码但也要根据语义和实际需求灵活选择传递方式，不要机械套用。]]></description><category></category></item><item><title><![CDATA[C++学习------字符串字面量(string literal）]]></title><link>https://blog.csdn.net/jndingxin/article/details/155318678</link><guid>https://blog.csdn.net/jndingxin/article/details/155318678</guid><author>jndingxin</author><pubDate>Thu, 27 Nov 2025 16:40:58 +0800</pubDate><description><![CDATA[特性类型char[6]（数组）char*（指针）内存位置栈（可写）.rodata（只读）内容来源复制字符串字面量直接指向字面量能否修改内容✅ 能❌ 不能（运行时错误）编译器检查修改合法修改不报错（但应警告）推荐写法无问题应写为。]]></description><category></category></item><item><title><![CDATA[C++学习------异常和中断的区别]]></title><link>https://blog.csdn.net/jndingxin/article/details/155316850</link><guid>https://blog.csdn.net/jndingxin/article/details/155316850</guid><author>jndingxin</author><pubDate>Thu, 27 Nov 2025 15:43:39 +0800</pubDate><description><![CDATA[特性中断（Interrupt）异常（Exception）来源外部硬件或软件请求CPU 内部执行指令时发生的问题或特殊事件同步性异步（与当前指令执行无关）同步（由当前指令直接引发）可预测性不可预测（随时可能发生）可预测（发生在特定指令执行时）典型例子键盘输入、网卡收到数据、定时器到期除零错误、缺页、系统调用、非法指令✅一句话记住中断来自“外面”，异常来自“里面”。维度中断（Interrupt）异常（Exception）发起者外部设备 or 软件指令（如intCPU 执行指令时内部检测。]]></description><category></category></item><item><title><![CDATA[C++学习------实参和形参区别]]></title><link>https://blog.csdn.net/jndingxin/article/details/154950269</link><guid>https://blog.csdn.net/jndingxin/article/details/154950269</guid><author>jndingxin</author><pubDate>Mon, 17 Nov 2025 15:56:47 +0800</pubDate><description><![CDATA[概念全称定义位置说明形参形式参数函数定义时声明的变量是函数内部的“占位符”，用于接收传入的数据实参（Argument）实际参数函数调用时传递的具体值或变量是调用者提供的真实数据形参（Parameter）实参（Argument）何时出现函数定义时函数调用时作用接收并使用传入的数据提供要传递的真实数据关系被实参初始化初始化形参💡一句话记住“定义看形参，调用看实参；实参给值，形参接住。]]></description><category></category></item><item><title><![CDATA[C++学习-----函数指针和指针函数]]></title><link>https://blog.csdn.net/jndingxin/article/details/154949096</link><guid>https://blog.csdn.net/jndingxin/article/details/154949096</guid><author>jndingxin</author><pubDate>Mon, 17 Nov 2025 15:18:18 +0800</pubDate><description><![CDATA[项目指针函数函数指针本质函数指针变量返回值/类型返回一个指针（如int*指向一个函数（如声明示例关键词重心“函数” —— 强调这是一个函数“指针” —— 强调这是一个指针是否可赋值函数名不可赋值（地址固定）指针变量可以重新指向其他函数“指针函数”是返回指针的函数；“函数指针”是指向函数的指针。“指针函数” → 函数；“函数指针” → 指针。掌握这个区别，就能避免常见的声明和使用错误！]]></description><category></category></item><item><title><![CDATA[C++学习------静态变量可以在不同实例中共享]]></title><link>https://blog.csdn.net/jndingxin/article/details/154937260</link><guid>https://blog.csdn.net/jndingxin/article/details/154937260</guid><author>jndingxin</author><pubDate>Mon, 17 Nov 2025 09:00:42 +0800</pubDate><description><![CDATA[✅静态变量（尤其是类的静态成员变量）确实在不同实例之间共享，这是实现计数器、单例模式、全局配置等设计模式的基础。]]></description><category></category></item><item><title><![CDATA[c++中的static，const，局部，全局变量]]></title><link>https://blog.csdn.net/jndingxin/article/details/154936966</link><guid>https://blog.csdn.net/jndingxin/article/details/154936966</guid><author>jndingxin</author><pubDate>Mon, 17 Nov 2025 08:47:29 +0800</pubDate><description><![CDATA[局部 static：用于保存状态（如计数器）、避免重复初始化。全局 static：封装实现细节，防止命名冲突。const：提高安全性，允许编译器优化，表达设计意图（不可变）。全局变量：谨慎使用，易导致耦合和难以调试的问题。]]></description><category></category></item><item><title><![CDATA[fatal error: mosquitto.h: 没有那个文件或目录解决办法]]></title><link>https://blog.csdn.net/jndingxin/article/details/153327480</link><guid>https://blog.csdn.net/jndingxin/article/details/153327480</guid><author>jndingxin</author><pubDate>Wed, 15 Oct 2025 14:49:56 +0800</pubDate><description><![CDATA[操作系统：ubuntu20.04编程语言：C++11架构：瑞芯微3568这个错误表明你的系统缺少 Mosquitto C 开发库（libmosquitto-dev 或类似包），而你的代码 MQTTBroker.cpp 依赖了 mosquitto.h 头文件。]]></description><category></category></item><item><title><![CDATA[瑞芯微算法环境搭建（2）------编译opencv]]></title><link>https://blog.csdn.net/jndingxin/article/details/153267276</link><guid>https://blog.csdn.net/jndingxin/article/details/153267276</guid><author>jndingxin</author><pubDate>Wed, 15 Oct 2025 11:35:38 +0800</pubDate><description><![CDATA[操作系统：ubuntu20.04编程语言：C++11架构：瑞芯微3568。]]></description><category></category></item><item><title><![CDATA[瑞芯微算法环境搭建（1）------编译ffmpeg]]></title><link>https://blog.csdn.net/jndingxin/article/details/153262057</link><guid>https://blog.csdn.net/jndingxin/article/details/153262057</guid><author>jndingxin</author><pubDate>Tue, 14 Oct 2025 16:25:50 +0800</pubDate><description><![CDATA[操作系统：ubuntu20.04编程语言：C++11架构：瑞芯微3568。]]></description><category></category></item><item><title><![CDATA[c++多线程（7）------异步结果获取机制]]></title><link>https://blog.csdn.net/jndingxin/article/details/152924503</link><guid>https://blog.csdn.net/jndingxin/article/details/152924503</guid><author>jndingxin</author><pubDate>Fri, 10 Oct 2025 15:08:52 +0800</pubDate><description><![CDATA[std::future 是一个只读的“占位符”，代表一个尚未就绪但未来会产生的值（或异常）。它通常与一个提供结果的“生产者”（如 std::promise、std::async）配对使用。一个 future 只能被移动（move），不能被复制（因为结果只能被获取一次）。调用 .get() 会阻塞当前线程，直到结果就绪，然后返回值（或抛出异常）。💡 类比：你去餐厅点餐（发起异步任务），服务员给你一个取餐号（future）。你拿着这个号，等厨房做好后，凭号取餐（调用 get()）。场景推荐方案。]]></description><category></category></item><item><title><![CDATA[c++多线程（6）------ 条件变量]]></title><link>https://blog.csdn.net/jndingxin/article/details/152791373</link><guid>https://blog.csdn.net/jndingxin/article/details/152791373</guid><author>jndingxin</author><pubDate>Thu, 09 Oct 2025 13:28:09 +0800</pubDate><description><![CDATA[条件变量（Condition Variable） 是实现线程间高效等待与通知机制的核心工具，通常与互斥锁配合使用，用于解决“生产者-消费者”、“任务队列”、“线程协调”等经典并发问题。]]></description><category></category></item><item><title><![CDATA[c++多线程（5）------原子操作]]></title><link>https://blog.csdn.net/jndingxin/article/details/152265996</link><guid>https://blog.csdn.net/jndingxin/article/details/152265996</guid><author>jndingxin</author><pubDate>Mon, 29 Sep 2025 13:50:06 +0800</pubDate><description><![CDATA[C++11 引入了 <atomic> 头文件和 std::atomic<T> 模板类，为多线程编程提供了无锁（lock-free）的原子操作支持。原子操作是并发编程中的基础构建块，用于在不使用互斥锁（mutex）的情况下实现线程安全的数据访问。]]></description><category></category></item><item><title><![CDATA[算法面试（6）------mAP 是什么？如何计算？P-R 曲线怎么看？]]></title><link>https://blog.csdn.net/jndingxin/article/details/152260005</link><guid>https://blog.csdn.net/jndingxin/article/details/152260005</guid><author>jndingxin</author><pubDate>Mon, 29 Sep 2025 11:42:54 +0800</pubDate><description><![CDATA[操作系统：ubuntu22.04编程语言：C++11这是一个目标检测（Object Detection）领域的核心评估指标问题，也是面试和论文中必考内容。我们从 mAP 是什么 → 如何计算 → P-R 曲线怎么看 三层递进，彻底讲透！]]></description><category></category></item><item><title><![CDATA[算法面试（5）------NMS（非极大值抑制）原理 Soft-NMS、DIoU-NMS 是什么？]]></title><link>https://blog.csdn.net/jndingxin/article/details/152046635</link><guid>https://blog.csdn.net/jndingxin/article/details/152046635</guid><author>jndingxin</author><pubDate>Wed, 24 Sep 2025 17:45:33 +0800</pubDate><description><![CDATA[这是一个目标检测领域的核心后处理问题，也是面试高频考点。我们从基础 NMS 原理 → 缺陷 → 改进版（Soft-NMS、DIoU-NMS） 三层递进，彻底讲透！]]></description><category></category></item></channel></rss>