摘要: React 极简入门:从 JavaScript 到 React - 知乎 (zhihu.com) HTML <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>My test page</title> </head> <body> 阅读全文
posted @ 2024-05-06 13:55 路边的十元钱硬币 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 仿函数:先了解一下为什么需要“仿函数” 考虑将函数指针做为函数 A 的形参的情况下,假如需求变更,需要修改函数指针的签名。这种情况下,在修改函数指针声明之后,还必须修改函数 A。 “仿函数”的存在目的,就是我们希望不修改函数 A,仍然可以实现函数签名的变更。 C++ 仿函数_恋喵大鲤鱼的博客-CSD 阅读全文
posted @ 2023-07-07 14:33 路边的十元钱硬币 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 内存映射可以加速磁盘文件的读取速度。 简单说明原理:将磁盘的一段空间映射到内存的地址中,和CPU的交互过程中,减少了缓存申请、缓存释放等过程,所以速度更快。 详细的解释: 一文搞懂内存映射(Memory Map)原理 - 知乎 (zhihu.com) 内存映射的实例代码(Windows) #incl 阅读全文
posted @ 2023-07-07 10:58 路边的十元钱硬币 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 使用标准库 #include <chrono> int main() { auto stampBeg = std::chrono::steady_clock::now(); // do someting Sleep(2400); auto stampEnd = std::chrono::steady 阅读全文
posted @ 2023-07-07 10:44 路边的十元钱硬币 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 摘录自:https://blog.csdn.net/to_baidu/article/details/53763683 Exception::~Exception() throw() {} 表示此函数不会抛出任何异常。 throw() 修饰,表示“限制函数抛出任何异常” throw(...) 修饰, 阅读全文
posted @ 2020-06-06 14:54 路边的十元钱硬币 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Before diving into the code, here is the folders structure. ├── CMakeLists.txt [ Top most ]├── subbinary│ ├── CMakeLists.txt [ subbinary ]│ └── main.c 阅读全文
posted @ 2020-04-26 11:50 路边的十元钱硬币 阅读(370) 评论(0) 推荐(0) 编辑
摘要: cmake_minimum_required(VERSION 3.5) # Set the project name project (third_party_include) # testing code find_package(OpenCV) message("OpenCV_INCLUDE_D 阅读全文
posted @ 2020-04-26 11:24 路边的十元钱硬币 阅读(389) 评论(0) 推荐(0) 编辑
摘要: # Set the minimum version of CMake that can be used # To find the cmake version run # $ cmake --version cmake_minimum_required(VERSION 3.5) # Set a de 阅读全文
posted @ 2020-04-25 21:01 路边的十元钱硬币 阅读(408) 评论(0) 推荐(0) 编辑
摘要: cmake_minimum_required(VERSION 3.5) project(cmake_examples_install) ############################################################ # Create a library ## 阅读全文
posted @ 2020-04-25 16:30 路边的十元钱硬币 阅读(180) 评论(0) 推荐(0) 编辑
摘要: cmake_minimum_required(VERSION 3.5) project(hello_library) ############################################################ # Create a library ########### 阅读全文
posted @ 2020-04-25 15:58 路边的十元钱硬币 阅读(365) 评论(0) 推荐(0) 编辑