摘要: // 多生产者多消费者模型 // 需要了解以下概念 // thread 线程 // mutex 互斥锁 // atomic 原子操作 // condition_variable 条件变量 #include <iostream> #include <thread> #include <mutex> # 阅读全文
posted @ 2022-06-12 23:11 Xun_BKY 阅读(117) 评论(0) 推荐(0) 编辑
摘要: https://zh.cppreference.com/w/cpp/language/operator_precedence 优先级 运算符 描述 结合性 1 :: 作用域解析 从左到右 2 a++ a-- 后缀自增与自减 type( ) type{ } 函数风格转型 a( ) 函数调用 a[ ] 阅读全文
posted @ 2021-12-31 10:39 Xun_BKY 阅读(196) 评论(0) 推荐(0) 编辑
摘要: https://zh.cppreference.com/w/cpp/language/ascii dec oct hex ch dec oct hex ch dec oct hex ch dec oct hex ch 0 0 00 NUL (空) 32 40 20 (空格) 64 100 40 @ 阅读全文
posted @ 2021-12-31 10:35 Xun_BKY 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 三种队列的简要介绍 阅读全文
posted @ 2019-09-12 20:47 Xun_BKY 阅读(2502) 评论(0) 推荐(1) 编辑
摘要: 从一个例子学习泛型思想 阅读全文
posted @ 2019-08-31 21:34 Xun_BKY 阅读(3098) 评论(0) 推荐(0) 编辑
摘要: C++ algorithm算法库中各函数的简要使用说明与示例 阅读全文
posted @ 2019-08-12 21:03 Xun_BKY 阅读(485) 评论(0) 推荐(1) 编辑