2014年9月7日

队列的基本操作

摘要: #include#define MAXSIZE 5typedef struct { int data[MAXSIZE]; int front; int rear;}Queue;void QueueInit(Queue *Q){ Q->front=0; Q->rear=0;}bool IsQueueE... 阅读全文

posted @ 2014-09-07 19:44 倩倩^_^ 阅读(140) 评论(0) 推荐(0)

栈的基本操作

摘要: #include#includetypedef struct StackNode{ int data; struct StackNode *next;}StackNode;typedef struct LinkStack{ StackNode* top; int cout;}LinkStack;vo... 阅读全文

posted @ 2014-09-07 19:40 倩倩^_^ 阅读(147) 评论(0) 推荐(0)

2014年8月30日

String类基本操作

摘要: #include#include#include#includechar *m_strcpy(char* strDest, const char *strSrc)// strlen(strcpy(s1,s2)){ //const char *strSrc---> const在*左边 修饰指向内容 ... 阅读全文

posted @ 2014-08-30 15:50 倩倩^_^ 阅读(118) 评论(0) 推荐(0)

2014年8月25日

常见链表操作

摘要: #include#include#includetypedef struct Node{ int data; Node* pnext;}Node,*List;//???Liststatic Node* BuyNode(int data)//???static{ Node *p=(Node*)m... 阅读全文

posted @ 2014-08-25 22:29 倩倩^_^ 阅读(116) 评论(0) 推荐(0)

2014年8月24日

常见的八种排序

摘要: #include#include#include//内排序--排序整个过程中,待排的所有记录都被放置在内存中//外排序--排序的记录个数太多,不能同时存放在内存,整个排序过程需要在内外存之间多次交换数据才能进行/********************************************... 阅读全文

posted @ 2014-08-24 23:14 倩倩^_^ 阅读(115) 评论(0) 推荐(0)

导航