上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 66 下一页
摘要: http://blog.csdn.net/huang_xw/article/details/8248960# boost::noncopyable比较简单, 主要用于单例的情况.通常情况下, 要写一个单例类就要在类的声明把它们的构造函数, 赋值函数, 析构函数, 复制构造函数隐藏到private或者 阅读全文
posted @ 2017-04-02 19:19 zzyoucan 阅读(2777) 评论(1) 推荐(2) 编辑
摘要: 在Makefile中我们经常看到 = := ?= +=这几个赋值运算符,那么他们有什么区别呢?我们来做个简单的实验 新建一个Makefile,内容为:ifdef DEFINE_VRE VRE = “Hello World!”elseendif ifeq ($(OPT),define) VRE ?= 阅读全文
posted @ 2017-03-31 01:15 zzyoucan 阅读(238) 评论(0) 推荐(0) 编辑
摘要: tar命令 1. 作用 tar命令是Unix/Linux系统中备份文件的可靠方法,几乎可以工作于任何环境中,它的使用权限是所有用户。 2. 格式 tar [主选项+辅选项] 文件或目录 eg: tar zxvf libiconv-1.13.tar.gz ./libiconv tar cxvf libiconv-1.13.tar.gz ./*.php 3. 主要参数 使用... 阅读全文
posted @ 2017-03-27 23:14 zzyoucan 阅读(295) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/wz3118103/article/details/39826397 阅读全文
posted @ 2017-03-26 13:35 zzyoucan 阅读(1410) 评论(0) 推荐(0) 编辑
摘要: ls命令是linux下最常用的命令之一,ls跟dos下的dir命令是一样的都是用来列出目录下的文件,下面我们就来一起看看ls的用法 英文全名:List即列表的意思,当我们学习某种东西的时候要做到知其所以然,当你知道了这个东西大概是个什么了以后你的思维就会联想到很多的东西学习的就会很快。 1. ls -a 列出文件下所有的文件,包括以“.“开头的隐藏文件(linux下文件隐藏文件是... 阅读全文
posted @ 2017-03-25 14:48 zzyoucan 阅读(203) 评论(0) 推荐(0) 编辑
摘要: set ts=4 set expandtab set shiftwidth=4 set autoindent set smartindent 阅读全文
posted @ 2017-03-22 23:47 zzyoucan 阅读(190) 评论(0) 推荐(0) 编辑
摘要: class Rational { public: Rational(int numerator = 0, int denominator = 1); int numerator() const; int denominator() const; private: }; const Rational operator*(const Rational& lhs, ... 阅读全文
posted @ 2017-03-21 00:23 zzyoucan 阅读(129) 评论(0) 推荐(0) 编辑
摘要: template class SquareMatriBase{ protected: void invert(std::size_t matrixSize); }; template class SquareMatrix : private SquareMatriBase//private继承表示SquareMatrix由SquareMatriBase继承而来 { private: ... 阅读全文
posted @ 2017-03-19 17:22 zzyoucan 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #include class CompanyA{ public: void sendCleartext(const std::string& msg){}; void sendEncrypted(const std::string& msg){}; }; class CompanyB{ void sendCleartext(const std::string& msg... 阅读全文
posted @ 2017-03-19 14:08 zzyoucan 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include template void f1(T(&ary)[bound]) { T x; for (int i = 0; i < bound; i++) { x = ary[i]; std::cout << x << std::endl; } } int main() { int a[] = { 1, 2, 3,... 阅读全文
posted @ 2017-03-05 13:29 zzyoucan 阅读(120) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 66 下一页