多项式相加c语言程序归类.pdfVIP

  • 0
  • 0
  • 约4.66千字
  • 约 5页
  • 2021-12-03 发布于福建
  • 举报
#include stdafx.h// 备注:我用的编译平台所提供的头文件不是 “stdio.h #includemalloc.h #includecstdlib // 此头文件用来解决执行可以执行文件 exe 后直接退出的问题, 希望可以帮 到大家了解一个新函数和头文件 typedef struct List{ //定义一个动态链表 float coef; int expn; struct List *next; }*list; list initlist()// 初始化,生成新结点 {list l;l=(list)malloc(sizeof(List)); if (!l) printf(error); l-next=NULL; return l; } void insertlist (list l,float *coe,int *exp)// 每次 scanf 后插入结点,从链尾插入, main 函数中定 义一个链表尾指针

文档评论(0)

1亿VIP精品文档

相关文档