02 2017 档案

摘要:1.aptitude show 软件名 例如:aptitude show kde-runtime 2.软件名 例如:dpkg -l gedit 3.查询安装路径 例如:dpkg -L gedit 或者 4.whereis 软件名 例如:whereis gedit 阅读全文
posted @ 2017-02-08 10:17 滴水瓦 阅读(788) 评论(0) 推荐(0) 编辑
摘要:POD,全称plain old data,plain代表它是一个普通类型,old代表它可以与c兼容,可以使用比如memcpy()这类c中最原始函数进行操作。C++11中把POD分为了两个基本概念的集合,即:平凡的(trival)和标准布局的(standard layout)。 1、首先是平凡的(tr 阅读全文
posted @ 2017-02-06 17:07 滴水瓦 阅读(5087) 评论(1) 推荐(1) 编辑
摘要:C++0x中引入了static_assert这个关键字,用来做编译期间的断言,因此叫做静态断言。 其语法:static_assert(常量表达式,提示字符串)。 如果第一个参数常量表达式的值为false,会产生一条编译错误,错误位置就是该static_assert语句所在行,第二个参数就是错误提示字 阅读全文
posted @ 2017-02-06 11:09 滴水瓦 阅读(7389) 评论(0) 推荐(0) 编辑
摘要:#include <cstdlib> #include <iostream> #include <time.h> #include <stdio.h> using namespace std; int main(int argc, char *argv[]) { time_t tNow =time( 阅读全文
posted @ 2017-02-03 16:23 滴水瓦 阅读(5014) 评论(0) 推荐(0) 编辑

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