上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: /*Explicit Exceptions: * We can also throw our own exceptions using the throw keyword. *1) Can provide more information message to a user. *2) Can provide more information to code that "catches " ... 阅读全文
posted @ 2019-03-03 14:42 卷积 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 2. Interface and inherience. 阅读全文
posted @ 2019-03-03 10:17 卷积 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1.Extends 关键字: 2. 3. Constructor 的继承。 4. Compile-time(static type) : 5. Object class: 阅读全文
posted @ 2019-02-27 23:05 卷积 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.tutorialspoint.com/c_standard_library/c_function_memcpy.htm 声明: Example: Output: 阅读全文
posted @ 2019-02-25 20:28 卷积 阅读(171) 评论(0) 推荐(0) 编辑
摘要: //p1指向的整型是个常量,不能改变,但是它本身可以指向其它变量。 int const* p; const int* p1; int a = 3; int b; //常量 指针, 不能再指向其他变量(必须初始化)。 int* const p2 = &a; //指向整型常量的常量指针。 //不能指向其他变量,指向的变量也不能再被修改(必须初始化) const int *const p3 = ... 阅读全文
posted @ 2019-02-25 16:53 卷积 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 用c++写的时候注意处理溢出。 阅读全文
posted @ 2019-01-24 17:20 卷积 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 参考:C++ Primer 5th P506. 如果类重载了函数调用运算符,则我们可以像使用函数一样使用该类的对象。 例子: 调用: 即使absObj只是一个对象而非函数,我们也能调用该对象。 调用该对象实际上是在运行重载的调用运算符。 函数调用运算符必须是成员函数。一个类可以定义多个不同版本的调用 阅读全文
posted @ 2018-12-25 11:36 卷积 阅读(140) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/breeze5428/article/details/30050327 cvCreateImage创建图像首地址,并分配存储空间。 IplImage*cvCreateImage(CvSize cvSize(int width, int height), i 阅读全文
posted @ 2018-12-25 11:18 卷积 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 参考:C++ Primer 中文版第5版 1. 继承 通过继承(inerutance)联系其他在一起的类构成一种层次关系。通常在层次关系的根部有一个基类(base class),其他类直接或者间接从基类继承而来,这些继承得到的类称为派生类(derived class)。 例子:首先定义一个名为Quo 阅读全文
posted @ 2018-12-25 10:15 卷积 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 装了debian9之后,早上始终无法登陆系统,在输入正确的用户名和密码之后始终在登陆界面循环泪奔,(以为又要重装系统了)。 上网中文的始终找不到,最后搜英文的找到了解决办法。 感谢: https://unix.stackexchange.com/questions/62623/debian-log- 阅读全文
posted @ 2018-12-21 10:01 卷积 阅读(381) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页