请你用C语言实现一个将输入的学生成绩组织成单向链表的简单函数。 函数接口定义: void input(); 该函数利用scanf从输入中获取学生的信息,并将其组织成单向链表。链表节点结构定义如下: ...

#include <stdio.h> #include <stdlib.h> struct stud_node { int num; /学号/ char name[20]; /姓名/ int score; /成绩/ struct stud_node *next; /指向下个结点的指针/ }; struct stud_node *head, *tail; void input() { struct stud_node *p = (

猜你喜欢

转载自blog.csdn.net/weixin_42591413/article/details/129601994
今日推荐