写一个函数create,用了建立一个动态链表
#include using namespace std; struct LINK { int num; char a[20]; char b[20]; char c[20]; struct LINK *next; }; void menu() { cout
用C编写一个函数Create(),该函数可以用于创建一个该函数返回链表的头指针。 1.动态输入学生人数(1-35) (1)学号:char型/* 学生的学号 : 5670 学生的成绩 : 999 学生的成绩 : 90 05670 90 请按任意键继续. . . */ #include #include #include typedef struct node { char id[6]; short score; struct node *next; }*Node,*LinkList; // 去除id中的非数字字符。
填空题:函数create从键盘输入整数序列,以输入0为4.函数create从键盘输入整数序列,以输入0为结束。按输入顺序建立单向struct node{int data; node * next;};node * create() {node *head, *p, *q;p = new node;head = p;cin>>p->data;while(p->data){q = p;p = new node;q->next = p;cin>>p->data;}if (head == p) head = NULL;else q->next = NULL;free(p);retur
C语言数据结构题。用头插法和尾插法建立一个单链表L。
C语言 void Create_LinkList(LinkList &L) { }