链表
文章平均质量分 77
玛格丽特菊
这个作者很懒,什么都没留下…
展开
-
链表输出
自己试试手的,可以参考看看#include #include typedef struct LIST { int data; struct LIST *next; }S; int main() { S *head,*p,*q; int N,a; head = (LIST*)malloc(sizeof(LIST*)); scanf("%d",&N); p=(原创 2013-08-12 16:38:12 · 550 阅读 · 0 评论 -
链表排序
#include #include #define OK 1 #define ERROR -1 #define OVERFLOW -2 typedef int Status; typedef struct LNode { int data; struct LNode *next; }LNode,*LinkLi原创 2013-10-09 17:59:32 · 499 阅读 · 0 评论 -
走迷宫伪代码
typedef struct { int m,n; char arr[RANGE][RANGE]; }MazeType; Status Pass(MazeType maze,PostType curpos) { if(maze.arr[curpos.r][curpos.c]==' ') return TRUE; else return FALSE; }原创 2013-10-16 16:49:37 · 1693 阅读 · 0 评论