
C++
文章平均质量分 53
風中塵埃
这个作者很懒,什么都没留下…
展开
-
LeetCode 48.Rotate Image 做题记录
题目: You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which means you have to modify the input 2D matrix directly. DO NOT allocate another 2D matrix and do the rotat原创 2021-01-11 13:52:21 · 117 阅读 · 0 评论 -
opencv源码学习 -- 阅读interface.h文件
此文件在项目中的位置:opencv-master/modules/core/include/opencv2/core/hal 这个接口文件定义了很多的数据类型,以及很多后面需要的宏定义。 #define CV_HAL_ERROR_OK 0 #define CV_HAL_ERROR_NOT_IMPLEMENTED 1 #define CV_HAL_ERROR_UNKNOWN -1 这段代码是对opencv检测相机的结果的三种宏定义。返回代码信息0,1,-1。 #ifdef __cplu..原创 2021-01-07 13:18:11 · 600 阅读 · 0 评论 -
C++笔记 -- 类(上)
类的基本思想是数据抽象和封装。数据抽象是一种依赖于接口和实现分离的编程技术。类的接口包括用户所能执行的操作;类的实现则包括类的数据成员,负责接口实现的函数体以及定义所需的各种私有函数。封装实现了类的接口和实现的分离。封装后的类能隐藏它的实现细节,类的用户只能使用接口而无法访问实现的具体部分。 比如我定义一个book类,书有名字,书号,编号等: class book { public: book(string& book_name, string& book_no原创 2020-12-27 21:14:48 · 166 阅读 · 0 评论