摘要:
kmp算法 阅读全文
摘要:
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #define ERROR 0 #define OK 1 typedef struct Stack { int *elements; int max_size, top_index; 阅读全文
摘要:
代码如下: #include <stdio.h>#include <stdlib.h> #define ERROR 0#define OK 1 typedef struct Queue{ int *data; int head,tail,length; }Queue; void init(Queue 阅读全文
摘要:
#include <stdio.h>#include <stdlib.h>#include <string.h> #define MAX_N 500 typedef struct Graph { int mat[MAX_N][MAX_N]; int n;}Graph; void init(Graph 阅读全文
摘要:
#include <stdio.h>#include <stdlib.h> typedef struct Node{ int data; struct Node *next; }Node, *LinkedList; LinkedList insert(LinkedList head, Node *n 阅读全文
摘要:
#include <stdio.h>#include <stdlib.h> #define ERROR 0#define OK 1 typedef struct Vector { int size,length; int *data; } Vector; void init(Vector *vect 阅读全文
摘要:
代码如下: #include <stdio.h>#include <stdlib.h> #define ERROR 0#define OK 1 typedef struct Vector { int size, length; int *data; } Vector; void init(Vecto 阅读全文