2016年3月24日
摘要: 下面是MyStack.h的代码: 下面是MyStack.cpp的内容: 下面是main函数的代码: 阅读全文
posted @ 2016-03-24 10:12 各种笔记 阅读(456) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include using namespace std; struct A{ int i[100]; }; struct B{ void f(); }; void B::f(){ } struct C{ }; int _tmain(int argc, _TCHAR* argv[]) { cout<<size... 阅读全文
posted @ 2016-03-24 08:38 各种笔记 阅读(189) 评论(0) 推荐(0) 编辑
  2016年3月23日
摘要: #include "stdafx.h" #include #include #include using namespace std; const int increment=100; typedef struct { int size; //每个元素所需空间 int quantity; //存储空间总数量 int next; //下一个空的空... 阅读全文
posted @ 2016-03-23 20:17 各种笔记 阅读(531) 评论(0) 推荐(0) 编辑
  2014年8月17日
摘要: 1 /* 2 * 二叉树 3 * 4 * (将完全二叉树的数组形式改为链表形式) 5 * 6 * 1 7 * 2 3 8 * ... 阅读全文
posted @ 2014-08-17 11:16 各种笔记 阅读(1486) 评论(0) 推荐(0) 编辑
  2014年8月14日
摘要: /*关于链表的题目 * A、B是两个递增有序的单链表,元素个数分别是m和n,求 * 集合A-B,并将结果保存在A中,且仍然保持递增有序。 * converge_ab */#include using namespace std;typedef struct lnode{ int data; ... 阅读全文
posted @ 2014-08-14 20:47 各种笔记 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1 /*顺序表中所有的元素逆置 2 * 3 */ 4 #include 5 using namespace std; 6 7 int main(){ 8 void reverse_arr(int arr[],int n); 9 int a[]={0,1,2,3,4,5... 阅读全文
posted @ 2014-08-14 20:11 各种笔记 阅读(921) 评论(0) 推荐(0) 编辑