上一页 1 ··· 22 23 24 25 26
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 1010; 6 7 int equ(const char *a,int beg,int beh) //总是与首字符形成的串相比,beh为后一个的序列 8 { 9 int n = strlen(a), i;... 阅读全文
posted @ 2016-06-14 17:40 douzujun 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1 //Date.cpp 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 //Date_class 8 class Date 9 { 10 private: 11 int year, month, day; 12 int week; ... 阅读全文
posted @ 2016-05-29 19:13 douzujun 阅读(644) 评论(0) 推荐(0) 编辑
摘要: /*---------------------------WB------BW---------------------------*/ //tab1.txt/---------------------------WB------BW-------W-------------------*/ //tab2.txt 1 #include 2 #include 3 #include ... 阅读全文
posted @ 2016-05-28 17:43 douzujun 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 *注:1.有一个bug(以及未知什么bug) 我已知的是: (a@b)(ps:@为运算符),这种带括号的表达式不能单独的出现,否则异常退出,,但是只要(a@b)@n 3 4 带括号的表达式出现任意+,-,*,/的运算都能进行正常运算(前面 n@(a@b)也不可以)。。。不知道为什么()表达式后面没有操作时会异常退出。 5 *不知道如何解决。希望感兴趣的人帮帮... 阅读全文
posted @ 2016-05-09 23:15 douzujun 阅读(1012) 评论(1) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include using namespace std; typedef pair PII; const int maxr = 10000 + 5; const int maxc = 10 + 5; int m, n, db[maxr][maxc], cnt; //m为当前的行... 阅读全文
posted @ 2016-04-20 20:26 douzujun 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 class Object { //抽象结点数据类,用于派生实际结点数据类 7 public : 8 Object() { //可省略---因为有默认构造函数,且正好它什么都... 阅读全文
posted @ 2016-04-19 22:44 douzujun 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 1 /*9876543210987654234522345 2 214748364723453452323452345 3 2147483647234523452323452345 4 181760911432744962345234523 5 2345234523434656346345634563测试数据*/ 6 #include 7 #include 8 #... 阅读全文
posted @ 2016-04-09 09:11 douzujun 阅读(2589) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26