随笔分类 -  数据结构

双向链表的创建,查找,删除
摘要:1 #include 2 #include 3 #include 4 /* 5 双向链表,创建,查找,删除 6 */ 7 //定义结构 8 typedef struct stu 9 { 10 char name[30]; 11 char sex; 12 int num; 13 float math; 14 float chinese... 阅读全文

posted @ 2018-12-04 09:27 王朝马汉 阅读(323) 评论(0) 推荐(0)

栈的自实现
摘要:1 #include 2 /* 3 题目:栈的自实现 4 思路:栈的典型特点就是先进后出(FILO),或是后进先出(LIFO)。主要接口操作,主要有四类,分别是,判空,判满,压栈,出栈 5 */ 6 //声明栈类型 7 struct stack 8 { 9 char arr[152]; 10 int top;//计数 11 }; 12 13 struct s... 阅读全文

posted @ 2018-09-18 15:57 王朝马汉 阅读(138) 评论(0) 推荐(0)

导航