随笔分类 -  c/c++

上一页 1 2 3 4 5 6 ··· 10 下一页

【c++基础】深入理解 CPU 的分支预测(Branch Prediction)模型-转载
摘要:参考 1. 深入理解 CPU 的分支预测(Branch Prediction)模型; 2. 001 - 为什么处理一段已排序的数组比处理一段未排序的数组快? 完 阅读全文

posted @ 2021-04-26 19:56 鹅要长大 阅读(152) 评论(0) 推荐(0) 编辑

【c++基础】C++ 头文件是使用 .h 还是 .hpp
摘要:参考 1. C++ 头文件是使用 .h 还是 .hpp; 2. stackoverflow-top-cpp; 3. 【我的C语言学习进阶之旅】什么是.hpp文件? 完 阅读全文

posted @ 2021-04-26 19:54 鹅要长大 阅读(158) 评论(0) 推荐(0) 编辑

【c++基础】013 - #include <filename> 和 #include "filename" 的区别是什么-转载
摘要:参考 1. 013 - #include <filename> 和 #include "filename" 的区别是什么; 2. stackoverflow-top-cpp; 完 阅读全文

posted @ 2021-04-26 19:53 鹅要长大 阅读(121) 评论(0) 推荐(0) 编辑

【c++基础】010 - static_cast, dynamic_cast, const_cast 和 reinterpret_cast 怎么用-转载
摘要:参考 1. 010 - static_cast, dynamic_cast, const_cast 和 reinterpret_cast 怎么用; 2. stackoverflow-top-cpp; 完 阅读全文

posted @ 2021-04-26 19:48 鹅要长大 阅读(48) 评论(0) 推荐(0) 编辑

【c/c++基础】struct/typedef struct的用法详解总结
摘要:参考 1. 完 阅读全文

posted @ 2021-04-26 18:59 鹅要长大 阅读(259) 评论(0) 推荐(0) 编辑

【c/c++基础】extern “C”的作用详解
摘要:参考 1. extern “C”的作用详解; 2. 【C++入门】C和C++混合编程超详细讲解_正在起飞的蜗牛的博客-CSDN博客; 3. C++和C的混合编译_iheal的博客-CSDN博客; 完 阅读全文

posted @ 2021-04-26 18:56 鹅要长大 阅读(269) 评论(0) 推荐(0) 编辑

【工具使用】使用windeployqt工具来进行Qt项目的打包部署发布
摘要:前言 步骤 step1:生成Release版本的可执行文件; step2:将生成的可执行文件复制到一个空白文件夹; step3:以QT5.14.2+MinGW7.3.0-64bit开发环境为例,按照以下路径打开Qt5.14.2(MinGW7.3.0 64bit)的命令行界面,运行windeployq 阅读全文

posted @ 2021-04-13 18:15 鹅要长大 阅读(492) 评论(0) 推荐(0) 编辑

【c++基础】006 - 关键字 explicit 是什么意思?-转载
摘要:参考 1. 006 - 关键字 explicit 是什么意思? 2. stackoverflow-top-cpp; 完 阅读全文

posted @ 2021-02-25 16:27 鹅要长大 阅读(207) 评论(0) 推荐(0) 编辑

【c++基础】linux系统代码调试
摘要:前言 aarch64-linux-gnu-nm freespaceaarch64-linux-nm freespaceaarch64-linux-gnu-nm freespaceaarch64-linux-gnu-objdump -x -s -d freespace addr2line 0x7f92 阅读全文

posted @ 2020-12-02 07:13 鹅要长大 阅读(155) 评论(0) 推荐(0) 编辑

【c++基础】出现内存泄漏的一段代码
摘要:前言 code float* lanemap = new float[output_h * output_w]; float* fsmap = new float[output_h * output_w]; cv::Mat showimg; std::vector<PointProp> border 阅读全文

posted @ 2020-12-02 07:02 鹅要长大 阅读(221) 评论(0) 推荐(0) 编辑

【leetcode_easy】1475. Final Prices With a Special Discount in a Shop
摘要:leetcode_easy_array problem 1475. Final Prices With a Special Discount in a Shop solution #1: 使用新数组更新数据; code solution #2: 直接在原数组更新数据; code: 注意: 1. 满足 阅读全文

posted @ 2020-10-29 22:50 鹅要长大 阅读(62) 评论(0) 推荐(0) 编辑

【leetcode_easy】1486. XOR Operation in an Array
摘要:leetcode_easy_array problem 1486. XOR Operation in an Array solution #1: code: 参考 1. leetcode_1486. XOR Operation in an Array; 完 阅读全文

posted @ 2020-10-29 22:41 鹅要长大 阅读(66) 评论(0) 推荐(0) 编辑

【leetcode_easy】1491. Average Salary Excluding the Minimum and Maximum Salary
摘要:leetcode_easy_array 1491. Average Salary Excluding the Minimum and Maximum Salary solution #1: code solution #2: code 注意: 1. 去除最大最小值之后的平均值; 2. 数组元素是un 阅读全文

posted @ 2020-10-28 08:13 鹅要长大 阅读(116) 评论(0) 推荐(0) 编辑

【leetcode_easy】1480. Running Sum of 1d Array
摘要:leetcode_easy_array problem 1480. Running Sum of 1d Array solution #1: code: 参考 1. leetcode_1480. Running Sum of 1d Array; 完 阅读全文

posted @ 2020-10-28 08:11 鹅要长大 阅读(74) 评论(0) 推荐(0) 编辑

【leetcode_easy】1470. Shuffle the Array
摘要:leetcode_easy_array problem 1470. Shuffle the Array solution #1: code solution #2: code 注意: 1. vector; first, last Input iterators to the initial and 阅读全文

posted @ 2020-10-28 08:08 鹅要长大 阅读(144) 评论(0) 推荐(0) 编辑

【leetcode_easy】1464. Maximum Product of Two Elements in an Array
摘要:leetcode_easy_array 1464. Maximum Product of Two Elements in an Array solution #1: code: 参考 1. leetcode_1464. Maximum Product of Two Elements in an Ar 阅读全文

posted @ 2020-10-27 23:13 鹅要长大 阅读(39) 评论(0) 推荐(0) 编辑

【leetcode_medium】18. 4Sum
摘要:leetcode_medium_array problem 18. 4Sum solution #1: code 注意: 1. 和3Sum的题目思路基本一致,多了一层循环,使用双指针; 参考 1. leetcode_18. 4Sum; 2. Grandyang; 完 阅读全文

posted @ 2020-10-27 23:12 鹅要长大 阅读(58) 评论(0) 推荐(0) 编辑

【leetcode_medium】16. 3Sum Closest
摘要:leetcode_medium_array problem 16. 3Sum Closest solution #1: 三重循环; code: solution #2: 排序后通过双指针移动确定; code 参考 1. leetcode_16. 3Sum Closest; 完 阅读全文

posted @ 2020-10-27 23:10 鹅要长大 阅读(57) 评论(0) 推荐(0) 编辑

【leetcode_medium】11. Container With Most Water
摘要:leetcode_medium_array problem 11. Container With Most Water solution #1: code 参考 1. leetcode_11. Container With Most Water; 完 阅读全文

posted @ 2020-10-27 23:09 鹅要长大 阅读(70) 评论(0) 推荐(0) 编辑

【leetcode_medium】15. 3Sum
摘要:leetcode_medium_array problem 15. 3Sum 注意: 1. 题目要求的没有重复的三元组,是指三元组是不同的,但是三元组的元素是可能有相同的; 2. 参考 1. leetcode_15. 3Sum; 2. Grandyang; 完 阅读全文

posted @ 2020-10-27 23:05 鹅要长大 阅读(107) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 10 下一页

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示