摘要: #include void move (int num, char f, char t){ printf("%d : %c -> %c\n", num, f, t);}void hanoi(int num, char one, char two, char three){ if(num ... 阅读全文
posted @ 2015-02-12 12:51 chencesc 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include char my_getch(){ int c=0; struct termios org_opts, new_opts; int res=0; ... 阅读全文
posted @ 2015-02-12 12:44 chencesc 阅读(388) 评论(0) 推荐(0) 编辑
摘要: deb http://archive.ubuntu.com/ubuntu/ vivid main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ vivid-security main restricted un 阅读全文
posted @ 2015-02-12 12:35 chencesc 阅读(133) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/namecyf/article/details/7787479 vim配置及插件http://www.zhihu.com/question/35465970 知乎set nu " 显示行号syntax on " 语法高亮"set background=da... 阅读全文
posted @ 2015-02-12 11:02 chencesc 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1.map是一类关联式容器,它是模板类。关联的本质在于元素的值与某个特定的键相关联,而并非通过元素在数组中的位置类获取。它的特点是增加和删除节点对迭代器的影响很小,除了操作节点,对其他的节点都没有什么影响。对于迭代器来说,不可以修改键值,只能修改其对应的实值。2.map 的定义使用map得包含map... 阅读全文
posted @ 2015-02-12 10:46 chencesc 阅读(795) 评论(0) 推荐(0) 编辑
摘要: vector(向量): C++中的一种数据结构,确切的说是一个类.它相当于一个动态的数组,当程序员无法知道自己需要的数组的规模多大时,用其来解决问题可以达到最大节约空间的目的.用法: 1. 首先在程序开头处加上#include以包含所需要的类文件vector 还有vector 是属于name... 阅读全文
posted @ 2015-02-12 10:10 chencesc 阅读(272) 评论(0) 推荐(0) 编辑
摘要: ** namespace:命名空间就是为解决C++中的变量、函数的命名冲突而服务的。** namespace定义的格式基本格式是: namespace identifier { entities; } 举个例子, namespace exp { int a,b; } 为了在n... 阅读全文
posted @ 2015-02-12 09:34 chencesc 阅读(236) 评论(0) 推荐(0) 编辑