摘要: 这里用的是冒泡排序 阅读全文
posted @ 2019-10-26 21:07 wwww2 阅读(606) 评论(0) 推荐(0) 编辑
摘要: #include #include #define MAX 100 typedef struct Book{ double no; char name[MAX]; double price; struct Book * next; }Book,*BList; //创建列表 void CreatList(BList &B) { //头插法创建单链表 ... 阅读全文
posted @ 2019-10-26 21:02 wwww2 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 这道题可以用头插法创建列表,然后正常输出: 阅读全文
posted @ 2019-10-26 20:56 wwww2 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 如果编译不通过,可以将C该为C++ 阅读全文
posted @ 2019-10-26 20:52 wwww2 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 typedef struct Lnode{ 4 int num; 5 struct Lnode * next; 6 }Lnode,*LinkList; 7 8 typedef struct Link{ 9 LinkList data; 10 struct Link * next... 阅读全文
posted @ 2019-10-26 20:42 wwww2 阅读(629) 评论(1) 推荐(0) 编辑
摘要: 头文件中 主函数 阅读全文
posted @ 2019-10-26 09:58 wwww2 阅读(534) 评论(0) 推荐(0) 编辑