03 2017 档案

摘要:在Makefile中我们经常看到 = := ?= +=这几个赋值运算符,那么他们有什么区别呢?我们来做个简单的实验 新建一个Makefile,内容为:ifdef DEFINE_VRE VRE = “Hello World!”elseendif ifeq ($(OPT),define) VRE ?= 阅读全文
posted @ 2017-03-31 01:15 zzyoucan 阅读(239) 评论(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 阅读(296) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/wz3118103/article/details/39826397 阅读全文
posted @ 2017-03-26 13:35 zzyoucan 阅读(1436) 评论(0) 推荐(0) 编辑
摘要:ls命令是linux下最常用的命令之一,ls跟dos下的dir命令是一样的都是用来列出目录下的文件,下面我们就来一起看看ls的用法 英文全名:List即列表的意思,当我们学习某种东西的时候要做到知其所以然,当你知道了这个东西大概是个什么了以后你的思维就会联想到很多的东西学习的就会很快。 1. ls -a 列出文件下所有的文件,包括以“.“开头的隐藏文件(linux下文件隐藏文件是... 阅读全文
posted @ 2017-03-25 14:48 zzyoucan 阅读(205) 评论(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 阅读(100) 评论(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 阅读(122) 评论(0) 推荐(0) 编辑
摘要:#include int main() { printf("this fake error is in %s on line %d\n", __FILE__, __LINE__); return 0; } 阅读全文
posted @ 2017-03-04 21:31 zzyoucan 阅读(169) 评论(0) 推荐(0) 编辑
摘要:内核时注意到有些函数会有添加__attribute__((unused)), 在gcc手册中找到了有关的解释: unused:This attribute, attached to a function, means that the function is meant to be possibly unused. GCC will not produce a warning f... 阅读全文
posted @ 2017-03-04 21:17 zzyoucan 阅读(1757) 评论(0) 推荐(0) 编辑

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