C语言程序改错及填空题.pdfVIP

  • 14
  • 0
  • 约7.97万字
  • 约 58页
  • 2019-04-18 发布于江苏
  • 举报
gc23.c 下列程序是建立一个包含学生有关数据的单向链表。但该程序有 2 个错 误,错误出现在 每个注释行附近,请调试改正。调试改正中,不得改变程序结构,也不得增删 语句。 #define NULL 0 struct stud { long num; char name[10]; float score; struct stud *next; }; /* …………… comment …………… */ int n; struct stud create() ////////struct stud *create(void) { struct stud *head,*p1,*p2; n=0; p1=p2=(struct stud *)malloc(sizeof(struct stud)); scanf(%ld,%s,%f,p1-num,p1-name,p1-score);

文档评论(0)

1亿VIP精品文档

相关文档