上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: 1.list#include #include using namespace std;//list的基本操作void list_init(){ list l; cout ::iterator it = l.begin(); while (it != l.end()) { ... 阅读全文
posted @ 2015-11-08 20:40 剑风云 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 1.queue#include #include using namespace std;//队列中基本数据类型void queue_push_pop_front(){ queue q; q.push(1); q.push(2); q.push(3); cout q... 阅读全文
posted @ 2015-11-08 20:35 剑风云 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1.stack#include #include using namespace std;//栈模型 //栈的算法 和 数据类型的分离void stack_push(){ stack s; //入栈 for (int i=0; i s; s.push(t1); s.pu... 阅读全文
posted @ 2015-11-08 20:31 剑风云 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1.deque#include #include #include using namespace std;void printD(deque &d){ for (deque::iterator it=d.begin(); it!=d.end(); it++ ) { cou... 阅读全文
posted @ 2015-11-08 20:13 剑风云 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1.vector操作#include #include using namespace std;//数组元素的 添加和删除void vector_push_back_front(){ vector v1; cout 0) { cout v1; v1.push... 阅读全文
posted @ 2015-11-08 19:57 剑风云 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1.Vector 中符合数据类型,指针的存储,出现次数的统计#include#include#includeconst int SIZE=40;using namespace std;typedef struct Teacher{ int age; int name[SIZE];}Tea... 阅读全文
posted @ 2015-11-08 15:36 剑风云 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 2 . 8 . 1 注释文档对于Java 语言,最体贴的一项设计就是它并没有打算让人们为了写程序而写程序——人们也需要考虑程序的文档化问题。对于程序的文档化,最大的问题莫过于对文档的维护。若文档与代码分离,那么每次改变代码后都要改变文档,这无疑会变成相当麻烦的一件事情。解决的方法看起来似乎很简单:将... 阅读全文
posted @ 2015-10-26 17:45 剑风云 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 一、static关键字通常,我们创建类时会指出那个类的对象的外观与行为。除非用new 创建那个类的一个对象,否则实际上并未得到任何东西。只有执行了new 后,才会正式生成数据存储空间,并可使用相应的方法。但在两种特殊的情形下,上述方法并不堪用:1、只想用一个存储区域来保存一个特定的数据——无论要创建... 阅读全文
posted @ 2015-10-26 17:04 剑风云 阅读(119) 评论(0) 推荐(0) 编辑
摘要: (一)环境变量设置1.在/etc/profile.d目录下建立一个以sh结尾的文件:(以jdk为例)(java.sh 注意)http://blog.csdn.net/yyf0986/article/details/118124691.Linux的换行: "n"2.windows的换行: "rn"(回... 阅读全文
posted @ 2015-10-21 20:39 剑风云 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1.高效而愉快的学习(快速学习)2.先建立一个整体的框架。然后细节3.用什么再学什么(计算机知识是永远学不完的,要在实战中快速学习)4.先know how 再know how(并不是什么都要知道原理,先做出来,再慢慢知道)5.软件编程是一门“做中学”的学科,不是会了再做,而是做了才会(一定要动手敲,... 阅读全文
posted @ 2015-10-21 20:10 剑风云 阅读(178) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页