- 博客(5)
- 收藏
- 关注
原创 关于C++中赋值运算符中可以访问私有成员
最近实验发现C++中可以在赋值运算符中可以访问私有成员,举例如下: #include <iostream> using namespace std; class B { private: int j; public: B(int jj = 9): j(jj){} }; class A { private: int i; A(const A &am...
2019-02-12 09:58:05 430
转载 shell中各种括号的作用()、(())、[]、[[]]、{}
转载于https://blog.csdn.net/taiyang1987912/article/details/39551385 一、小括号,圆括号() 1、单小括号 () ①命令组。括号中的命令将会新开一个子shell顺序执行,所以括号中的变量不能够被脚本余下的部分使用。括号中多个命令之间用分号隔开,最后一个命令可以没有分号,各命令和括号之间不必有空格。 ②命令替换。等同于`...
2018-09-09 15:35:07 145
原创 OpenCV用分水岭算法进行图像分割代码示例
// this program is test code for studying the watershed algoritm #include <iostream> #include <string> #include <opencv2/opencv.hpp> const std::string readImageDirectory("D:\\Codes...
2018-09-09 14:22:46 805
原创 C++文件读取写入练习
// this program will read the context of the configure file and save the copy in a map object, // with the map object, we can change the context of the map object, // in the end, we will write the ma...
2018-09-02 18:51:22 490
原创 Common Lisp中的set和setq
之前看Practical Common Lisp,其中大部分的值绑定是用setf来实现的。当时一直不太明白为什么像(setf hello 1),这样的S-expression中的hello这样的Symbol是怎样理解的,最近看到An Introduction to Programming in Emacs Lisp中介绍,Symbol与值绑定时,所讲解的set与setq之间的区别,才豁然开朗:比如
2017-12-05 20:30:30 1493
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人