随笔分类 -  language:C/C++

摘要:(更新过后的代码效果) 阅读全文
posted @ 2016-10-08 16:34 douzujun 阅读(2237) 评论(2) 推荐(0)
摘要:1 /* 2 8 6 3 1 1 1 1 1 1 1 1 4 1 0 0 1 0 0 1 1 5 1 1 0 0 0 0 0 1 6 1 0 0 1 0 1 0 1 7 1 0 0 0 0 0 0 1 8 1 1 1 1 1 1 1 1 9 */ 10 #include <iostream> /// 阅读全文
posted @ 2016-10-07 22:44 douzujun 阅读(362) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int main() 8 { 9 int n; 10 string ch; 11 cout > n; 13 while (n--) { 14 stack check; 15 ... 阅读全文
posted @ 2016-10-05 14:56 douzujun 阅读(2403) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 11 void welcome(); //欢迎模块 12 void play_mp3... 阅读全文
posted @ 2016-09-30 00:45 douzujun 阅读(349) 评论(0) 推荐(0)
摘要:1 #include 2 using namespace std; 3 4 template 5 class Vector 6 { 7 private: 8 int theSize; //实际数据大小 9 int theCapacity; //实际容器... 阅读全文
posted @ 2016-08-31 22:49 douzujun 阅读(1051) 评论(0) 推荐(0)
摘要:1 /* 2 输入文件见337.in.txt 3 输出文件见338.out.txt 4 */ 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 11 const int maxList = 2048 * 10 + 10; //单词表的最大值 12 c... 阅读全文
posted @ 2016-06-26 17:19 douzujun 阅读(1490) 评论(3) 推荐(0)
摘要:1 #include 2 using namespace std; 3 4 //打印一种划分 5 void display(int *result, int length) 6 { 7 cout = 0 && m == 1时,有n中{1,1,....1}.即划分为f(n-1,m); 如:6 = 1+1+1+1+1+1时 21 if (n >= 0 && m == ... 阅读全文
posted @ 2016-06-26 11:54 douzujun 阅读(567) 评论(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 阅读(401) 评论(0) 推荐(0)