- 博客(5)
- 收藏
- 关注
原创 02-线性结构3 Reversing Linked List
未完成版本:有多余结点不在链表上-段错误#include <stdio.h>#include <stdlib.h>struct node{ int data; int nextaddress; int address; struct node* next;}node;typedef struct node* linklist;linklis...
2019-04-15 15:31:56
197
原创 05-树8 File Transfer
#include <stdio.h>#include <stdlib.h>#define MAXSIZE 10000typedef int elemtype;typedef int setname;typedef elemtype settype[MAXSIZE];setname find(settype s,elemtype x){// for(;s[x]...
2019-04-15 15:23:42
149
原创 06-图1 列出连通集
#include <stdio.h>#include <stdlib.h>#define maxsize 10int visit[maxsize];int visit2[maxsize];typedef struct LGraph{ int Vertex[maxsize]; int Edge[maxsize][maxsize]; int...
2019-04-15 15:22:54
180
原创 06-图2 Saving James Bond - Easy Version
#include <stdio.h>#include <math.h>#define maxsize 100int visit[maxsize];typedef struct{ double x,y;}coored;int firstjump(double distance,coored point){ //判断第一跳是否成功 return ...
2019-04-15 15:22:14
151
原创 03-树3 Tree Traversals Again
#include <stdio.h>struct node{ int tag; int num;};int main(){ int n; scanf("%d",&n); int flag=0; struct node stack[30]; int size=0; for(int i=0;i<2*n;i++){ char ...
2019-04-15 15:21:09
96
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人