C语言数据读入代码.docVIP

  • 6
  • 0
  • 约2.67千字
  • 约 4页
  • 2017-09-05 发布于浙江
  • 举报
C语言数据读入代码

#includestdio.h #includestdlib.h #includeString.h #define OVERFLOW 1 #define N 8 /*站点的个数*/ struct node { char path[6]; struct node *next; }; struct pathnode { char pathname[5]; int money; struct node *link; /*记录第一个路线的信息*/ struct node *rlink; /*连接第2个路线的信息*/ struct pathnode *elink; /*连接后继*/ }; void print1(struct node *head) { struct node *p=head; while(p!=NULL) { ?? printf(%s,p-path); ?? p=p-next; ?? if(p!=NULL) ?? { ??? putchar(-); ?? } } } void print(struct pathnode *head) { struct pathnode *q; q=NULL; q=head; if(q==NULL) { ?? puts(没有接受到数据); ?? exit(1); } else { ?? ???? while(q!=NULL) ?? { ?

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档