按照与输入顺序相反的顺序创建单链表

好比说输入1 2 3 输出应该是 3 2 1node #include<stdio.h>测试 #include<stdlib.h> struct node { int data; struct node *next; }; void CreateLink(struct node *head) {//逆序创建单链表 struct node *p=head,*q; int x; printf("请输入
相关文章
相关标签/搜索