物流信息管理系统 C 语言源程序#inc lude #in c lude <str i ng、h〉#incl u de s tru ct stuff //员工数据结构体{char n am e[10];char pa s s w o r d[1 0];ﻩch ar qu a nx i an[2];};s truct g o o d s //货品数据结构体{char num b e r[20];ﻩc ha r name[2 0];int quantit y;c har c ost[2 0];cha r v olu m e[2 0];c h ar w eigh t[20];};t y ped e f s tr u ct a{ﻩst r uct stu f f s;ﻩs truct a *next;}stuffnod e; typ e d e f stru ct b{ﻩstr u ct go ods g;struct b *next;}goodsnode; stu f fnode *stuff h ead = N ULL;ﻩﻩ//全局结构体链表指针变量头指针s tuffno d e *st u f fp 1 = NU LL;go o dsn o d e *g o o ds h ead = NU L L;goo dsn o de *goodsp1 = N U L L;v o id i nitia l_stuf f(){ﻩF I LE *fp;ﻩs tuf f n o d e *p;ﻩif((fp = fopen("s t u f f、txt”,"r”)) == N U LL)ﻩ{ﻩﻩp ri n t f(”无任何员工信息,请新建
\n\n");ﻩ}ﻩe l se{ﻩﻩf seek(f p,0,S EE K_E ND);ﻩﻩint n,i;ﻩn = ftell(f p)/s iz e