摘要: C++11支持移动语义。一:为什么需要移动语义和什么是移动语义我们先来看看C++11之前的复制过程。假设有下列代码:vector v1(1000000);//v1存放着100W个string,假设每个string长度为1000vector v2(v1);//使用v1初始化v2vector和strin... 阅读全文
posted @ 2014-09-24 16:20 withChengChen 阅读(2780) 评论(0) 推荐(0) 编辑
摘要: 谢谢:I do appreciated/Much appreciated.Cheers/Cheers mate/Cheers bro (mostly used)Lovely/That's greate/All right/okay/Brilliant/excellent/super/awesome ... 阅读全文
posted @ 2014-09-21 16:36 withChengChen 阅读(236) 评论(0) 推荐(0) 编辑
摘要: #include#include#include//_Tusingnamespacestd;intmain(){/*strings0="学正楼";cout<<s0[0];cout<<s0[1]<<endl;*///wcout.imbue(locale("chs",locale::ctype));//... 阅读全文
posted @ 2014-09-04 21:10 withChengChen 阅读(5476) 评论(0) 推荐(0) 编辑
摘要: #includeusingnamespacestd;int*returndie() // 除了地址为a的,a以后的都死了{inta[4]={1,2,3,4};returna;}intmain(){autoa=returndie();for(size_ti=0;i<4;i++){cout<<a[i... 阅读全文
posted @ 2014-09-03 23:11 withChengChen 阅读(128) 评论(0) 推荐(0) 编辑
摘要: classGraph{protected:size_tnumVertex=0,numEdge=0;public:virtualsize_tn()=0;//返回顶点数virtualsize_te()=0;//返回目前的边数virtualintfirst(size_t)=0;//返回第一个neighbo... 阅读全文
posted @ 2014-09-03 17:32 withChengChen 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Mentohust下载地址http://code.google.com/p/mentohust/downloads/list因为是Ubuntu64位,所以下载对应的最新的DEB软件包,双击deb包安装。安装成功后,一般并不能直接使用,当然可以你可以先尝试一下sudomentohust如果有提示错误,... 阅读全文
posted @ 2014-09-01 18:57 withChengChen 阅读(2038) 评论(0) 推荐(0) 编辑
摘要: 菜单栏里的 工具-》编译选项-》 阅读全文
posted @ 2014-08-31 09:35 withChengChen 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 图标,各有特色http://findicons.com/http://www.easyicon.net/http://www.iconpng.com/https://www.iconfinder.com/做UI设计可能会用上的图片素材网站: Flickr图片社区: https://www.flick... 阅读全文
posted @ 2014-08-29 17:30 withChengChen 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 20140827#sar -n DEV 1 10020140828##apt-get update # apt-get upgrade~~~~~~~~~~~~~~~~~~~~~~~~~~centos ~~~~~~~~~~~~~添加一个具有root权限的新用户#addusertommy//添加... 阅读全文
posted @ 2014-08-27 22:47 withChengChen 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1、显示 TAB 键文件中有 TAB 键的时候,你是看不见的。要把它显示出来::set list现在 TAB 键显示为 ^I,而 $显示在每行的结尾,以便你能找到可能会被你忽略的空白字符在哪里。这样做的一个缺点是在有很多 TAB 的时候看起来很丑。如果你使用一个有颜色的终端,或者使用GUI 模式,V... 阅读全文
posted @ 2014-08-24 23:16 withChengChen 阅读(10240) 评论(0) 推荐(0) 编辑