#ifndef _LINKEDLIST_H_#define _LINKEDLIST_H_#include <stdexcept>using namespace std;class EmptyListException : public logic_error {public: EmptyListException(const string& what_arg ) throw() : logic_error ("Empty list exception: " + what_arg) {}};template <class T>cla ...
- 18:26
- 浏览 (83)
- 评论 (0)
#ifndef _KMP_H_#define _KMP_H_template<typename T>void prefix(T* p, int m, int* next){ int k = -1; for(int i=0; i<m; i++) { while(k>-1 && p[i]!=p[k]) k=next[k]; if(p[i]==p[k+1]) next[i]=k+1; else next[i]=0; }}template<typename T>i ...
- 18:24
- 浏览 (61)
- 评论 (0)
#ifndef _ADD_H_#define _ADD_H_ #include <iostream>#include <stack>#include <string> using namespace std; class BigNum; ostream &operator<<(ostream &os, BigNum &bn);istream &operator>>(istream &is, BigNum &bn); BigNum &operator+(BigNum &la ...
- 18:24
- 浏览 (62)
- 评论 (0)
/////////////////////////////////////////////////////////////////////////////////// The Sort //// /////////////////////////////////////////////////////////// ...
- 18:23
- 浏览 (64)
- 评论 (0)
- 浏览: 5513 次
- 性别:

- 来自: 西安

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
今天有谁和我一样在八万人 ...
我在网上直接买了,不用排队
-- by realdah -
今天有谁和我一样在八万人 ...
本来想去的,公司开会,不过看到网上有人23号中午开始排,反而庆幸没去。
-- by maxiaoxia -
传一个数组的引用
奇怪哦 为什么第一个的代码都被弄成一行了啊...
-- by DraculaW






评论排行榜