|
3780| 1
|
C语言链表怎么从大到小输出 |
|
5鱼币
最佳答案/*
** 双向链表test
*/
#include "stdio.h"
int k(struct str *c);
struct str
{
char name[5];
int n;
struct str *next;
struct str *pre;
}ne[5]={{"555",5},{"666",6},{"777",7},{"888",8}};
void main()
{
struct str *p=NULL;
struct str *tail=NULL; //尾指针
p=&ne[4];
tail=&ne[4];
ne[0].next=&ne[1];
ne[1].next=&ne[2];
ne[2].next=&ne[3];
ne[3].next=&ne[4];
ne[4].next=NULL;
...
| ||
|
小甲鱼最新课程 -> https://ilovefishc.com
|
||
| ||
|
小甲鱼最新课程 -> https://ilovefishc.com
|
||
小黑屋|手机版|Archiver|鱼C工作室
( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2025-11-16 18:51
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.