摘要: 首先在官网下载指定版本opencv源码: https://opencv.org/releases/ cd ~/opencv #此处为opencv的解压文件目录 mkdir build cd build cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTAL 阅读全文
posted @ 2021-07-10 20:26 三一一一317 阅读(237) 评论(0) 推荐(0)
摘要: 1 常量的定义方式 一:define定义的宏常量 二:const 修饰的变量 #define 常量名 常量值 const 类型 常量名 常量值 变量前加const关键字变成常量,不可更改。 阅读全文
posted @ 2021-07-10 19:53 三一一一317 阅读(40) 评论(0) 推荐(0)
摘要: class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { vector<int> res; unordered_map<int, int> map; for(int i = 0; i < nums.siz 阅读全文
posted @ 2021-07-10 16:09 三一一一317 阅读(34) 评论(0) 推荐(0)