09 2014 档案
摘要:#include#include #include"windows.h"using namespace std;struct OLinMatrixkNode{ int data; int x,y; OLinMatrixkNode* right; OLinMatrixkNode...
阅读全文
摘要:#include#include #include"windows.h"using namespace std;struct StaticLinkNode{ int data; int next;};struct StaticLink{ StaticLinkNode* nodes;...
阅读全文
摘要:#include#include #include"windows.h"using namespace std;struct Tripple{ int x,y,value;};struct RLSMatrix{ int r,c,cnt; Tripple* tripples; ...
阅读全文
摘要:#include#include #include"windows.h"using namespace std;struct Tripple{ int x,y,value;};struct TrippleMatrix{ int r,c,cnt; Tripple* tripples;...
阅读全文
摘要:#include#include using namespace std;enum TriangleTye{leftBottom,leftUp,rightBottom,rightUp};struct TriangleMatrix{ int* nums; int scale; Tri...
阅读全文
摘要:#includeusing namespace std;struct LinkQueueNode{ LinkQueueNode* nextIn; int value;};struct LinkQueue{ LinkQueueNode* front; LinkQueueNo...
阅读全文
摘要:#includeusing namespace std;struct LinktackNode{ LinktackNode* lastIn; int value;};struct LinkStack{ LinktackNode* top; LinktackNode* ...
阅读全文
摘要:#includeusing namespace std;struct Queue{ int maxCnt; int* elements; int front,rear;};Queue* createQueue(int max=7){ Queue* queue = (Queu...
阅读全文
摘要:#includeusing namespace std;struct Stack{ int maxCnt; int* elements; int top,bottom;};Stack* createStack(int max=100){ Stack* stack = (St...
阅读全文
摘要:#includeusing namespace std;struct LinkNode{ int value; LinkNode* next; LinkNode* pre;};LinkNode* createDoubleRoundLinkList(){ LinkNode* head...
阅读全文
摘要:#includeusing namespace std;struct LinkNode{ int value; LinkNode* next; LinkNode* pre;};LinkNode* createDoubleLinkList(){ LinkNode* head = (L...
阅读全文
摘要:#includeusing namespace std;struct LinkNode{ int value; LinkNode* next;};LinkNode* createRoundLinkList(){ LinkNode* head = (LinkNode*)malloc(si...
阅读全文
摘要:#includeusing namespace std;/*有一个头节点下标都是从0开始头节点的下表是0,所以元素的下标是从1开始,添加删除都是以1为下标的位置头节点的value代表链表长度*/struct LinkNode{ int value; LinkNode* next;};Li...
阅读全文