09 2014 档案

摘要:#include#include #include"windows.h"using namespace std;struct OLinMatrixkNode{ int data; int x,y; OLinMatrixkNode* right; OLinMatrixkNode... 阅读全文
posted @ 2014-09-28 17:14 kbyd 阅读(168) 评论(0) 推荐(0) 编辑
摘要:#include#include #include"windows.h"using namespace std;struct StaticLinkNode{ int data; int next;};struct StaticLink{ StaticLinkNode* nodes;... 阅读全文
posted @ 2014-09-28 13:55 kbyd 阅读(198) 评论(0) 推荐(0) 编辑
摘要:#include#include #include"windows.h"using namespace std;struct Tripple{ int x,y,value;};struct RLSMatrix{ int r,c,cnt; Tripple* tripples; ... 阅读全文
posted @ 2014-09-26 20:42 kbyd 阅读(221) 评论(0) 推荐(0) 编辑
摘要:#include#include #include"windows.h"using namespace std;struct Tripple{ int x,y,value;};struct TrippleMatrix{ int r,c,cnt; Tripple* tripples;... 阅读全文
posted @ 2014-09-26 19:58 kbyd 阅读(244) 评论(0) 推荐(0) 编辑
摘要:#include#include using namespace std;enum TriangleTye{leftBottom,leftUp,rightBottom,rightUp};struct TriangleMatrix{ int* nums; int scale; Tri... 阅读全文
posted @ 2014-09-26 19:16 kbyd 阅读(204) 评论(0) 推荐(0) 编辑
摘要:#includeusing namespace std;struct LinkQueueNode{ LinkQueueNode* nextIn; int value;};struct LinkQueue{ LinkQueueNode* front; LinkQueueNo... 阅读全文
posted @ 2014-09-24 23:36 kbyd 阅读(202) 评论(0) 推荐(0) 编辑
摘要:#includeusing namespace std;struct LinktackNode{ LinktackNode* lastIn; int value;};struct LinkStack{ LinktackNode* top; LinktackNode* ... 阅读全文
posted @ 2014-09-24 22:56 kbyd 阅读(145) 评论(0) 推荐(0) 编辑
摘要:#includeusing namespace std;struct Queue{ int maxCnt; int* elements; int front,rear;};Queue* createQueue(int max=7){ Queue* queue = (Queu... 阅读全文
posted @ 2014-09-24 22:17 kbyd 阅读(207) 评论(0) 推荐(0) 编辑
摘要:#includeusing namespace std;struct Stack{ int maxCnt; int* elements; int top,bottom;};Stack* createStack(int max=100){ Stack* stack = (St... 阅读全文
posted @ 2014-09-24 21:37 kbyd 阅读(309) 评论(0) 推荐(0) 编辑
摘要:#includeusing namespace std;struct LinkNode{ int value; LinkNode* next; LinkNode* pre;};LinkNode* createDoubleRoundLinkList(){ LinkNode* head... 阅读全文
posted @ 2014-09-24 20:57 kbyd 阅读(430) 评论(0) 推荐(0) 编辑
摘要:#includeusing namespace std;struct LinkNode{ int value; LinkNode* next; LinkNode* pre;};LinkNode* createDoubleLinkList(){ LinkNode* head = (L... 阅读全文
posted @ 2014-09-23 21:48 kbyd 阅读(233) 评论(0) 推荐(0) 编辑
摘要:#includeusing namespace std;struct LinkNode{ int value; LinkNode* next;};LinkNode* createRoundLinkList(){ LinkNode* head = (LinkNode*)malloc(si... 阅读全文
posted @ 2014-09-23 20:16 kbyd 阅读(180) 评论(0) 推荐(0) 编辑
摘要:#includeusing namespace std;/*有一个头节点下标都是从0开始头节点的下表是0,所以元素的下标是从1开始,添加删除都是以1为下标的位置头节点的value代表链表长度*/struct LinkNode{ int value; LinkNode* next;};Li... 阅读全文
posted @ 2014-09-23 13:32 kbyd 阅读(214) 评论(0) 推荐(0) 编辑