随笔分类 -  C++

摘要:这些东西有点烦,有点无聊。如果要去C++面试就看看吧。几年前网上搜索的。刚才看到,就整理一下,里面有些被我改了,感觉之前说的不对或不完善。转自fangyukuan,地址http://www.cnblogs.com/fangyukuan/archive/2010/09/18/1829871.html。... 阅读全文
posted @ 2015-07-18 17:46 TACHIA 阅读(256) 评论(0) 推荐(0)
摘要:本文参考阮一峰老师的KMP算法,重点是“部分匹配表”的建立。算法可参考http://kb.cnblogs.com/page/176818/ 。/** kmp.cpp* Author: Qiang Xiao* Time: 2015-07-18*/#include#includeusing ... 阅读全文
posted @ 2015-07-18 01:52 TACHIA 阅读(337) 评论(0) 推荐(0)
摘要:很久没有接触二叉树了,写这个当作练手,接下来会比较详细地实现二叉树的各个功能及应用。/** BinaryTree.cpp* Author: Qiang Xiao* Time: 2015-07-17*/#include#includeusing namespace std;templa... 阅读全文
posted @ 2015-07-18 00:06 TACHIA 阅读(369) 评论(0) 推荐(0)
摘要:/** simpleIndex.cpp* Author: Qiang Xiao* Time: 2015-07-13*/#include#includeusing namespace std;int simpleIndex(const string&, const string&, int... 阅读全文
posted @ 2015-07-13 16:07 TACHIA 阅读(734) 评论(0) 推荐(0)
摘要:/* LList.cpp* Author: Qiang Xiao* Time: 2015-07-12*/#includeusing namespace std;class Node{ public: int data; Node* ptr; Node(int... 阅读全文
posted @ 2015-07-12 18:29 TACHIA 阅读(275) 评论(0) 推荐(0)
摘要:/* LList.cpp* Author: Qiang Xiao* Time: 2015-07-12*/#includeusing namespace std;class Node{ public: int data; Node* ptr; Node(int... 阅读全文
posted @ 2015-07-12 11:00 TACHIA 阅读(3227) 评论(0) 推荐(0)
摘要:/* SList.cpp Author: Qiang Xiao Time: 2015-07-11*/#includeusing namespace std;const int MAX_LENGTH= 20;class SList{ private: int max_len... 阅读全文
posted @ 2015-07-11 14:32 TACHIA 阅读(919) 评论(2) 推荐(0)