10 2017 档案

摘要:#include #include #include // TODO: 在此处引用程序需要的其他头文件 struct String{ char* ch; int length; }; bool Assign_String(String* str, char* chars); bool Destroy_String(String* str); bool Clear_... 阅读全文
posted @ 2017-10-28 11:36 汪昕 阅读(1301) 评论(0) 推荐(0)
摘要:#include #include #include #define MaxQueueSize 100 // TODO: 在此处引用程序需要的其他头文件 struct Node{ int data; Node* next; }; struct Queue{ Node* front; Node* rear; }; //初始化队列 bool Init_Qu... 阅读全文
posted @ 2017-10-28 09:00 汪昕 阅读(1162) 评论(0) 推荐(0)
摘要:#include #include #include #define MaxQueueSize 100 // TODO: 在此处引用程序需要的其他头文件 struct Queue { int* base; int front;//队头指针 int rear;//队尾指针 }; //初始化队列 bool Init_Queue(Queue* q){ q->... 阅读全文
posted @ 2017-10-27 21:34 汪昕 阅读(582) 评论(0) 推荐(0)
摘要:#include #include #include #define StackSize 5 #define IncrementSize 5 // TODO: 在此处引用程序需要的其他头文件 struct Stack { int *base; int *top; int stacksize; }; //初始化栈 bool Init_Stack(Stack* s... 阅读全文
posted @ 2017-10-27 20:20 汪昕 阅读(2669) 评论(0) 推荐(0)
摘要:#include "stdafx.h" #include //创建一个节点,data为value,指向NULL Node* Create(int value){ Node* head = (Node*)malloc(sizeof(Node)); head->data = value; head->next = NULL; return head; } //销毁链... 阅读全文
posted @ 2017-10-27 11:26 汪昕 阅读(14678) 评论(0) 推荐(0)
摘要:#include #include #include #define LIST_INIT_SIZE 100 #define LISTINCREMENT 10 // TODO: 在此处引用程序需要的其他头文件 // typedef struct{ int *elem; int length;//当前长度 int listsize;//当前分配的存储容量 }SqList; //新建线性... 阅读全文
posted @ 2017-10-26 21:15 汪昕 阅读(5105) 评论(0) 推荐(0)