4353| 2
|
单链表 如何 逆序 输出 |
15鱼币
最佳答案# include
# include
struct node
{
int data;
struct node *next;
};
void digui(struct node* head)
{
if(head == NULL)
return;
if(head->next != NULL)
digui(head->next);
printf("%d ",head->data);
}
int main()
{
struct node *head,*p,*q,*t;
int i,n,m,a,b;
scanf("%d",&n);
head=NULL;
for(i=1;idat ...
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
发表于 2015-12-25 18:25:23
|
显示全部楼层
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
| ||
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
|
||
小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2024-11-22 20:03
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.