摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> typedef struct node * PNode; /*定义队列的每个节点的类型*/ typedef struct node { int data;//每个节点中存放的数据 PNo 阅读全文
posted @ 2017-02-25 17:43 爱编程的小羊 阅读(5749) 评论(0) 推荐(0) 编辑
摘要: 如果在c程序中我们写: typedef struct { int num; int age; }aaa,bbb,ccc; 这算什么呢? 我个人观察编译器(VC6)的理解,这相当于 typedef struct { int num; int age; }aaa; typedef aaa bbb; ty 阅读全文
posted @ 2017-02-25 17:03 爱编程的小羊 阅读(1393) 评论(0) 推荐(0) 编辑
摘要: /* * 最短路径,迪杰斯特拉算法和弗洛伊德算法(采用邻接矩阵存储) * */ #include #define MAX_VERTEX_NUM 20 #define INFINITE 10000 //当做无穷大 //图的定义 typedef struct { int vertexNum; char... 阅读全文
posted @ 2017-02-25 16:29 爱编程的小羊 阅读(9915) 评论(0) 推荐(0) 编辑