c语言设备管理系统流程图


结构体、链表的设计说明

     typedef struct facility

{

     char no[20];设备号

     char name[10];设备名称

     char cj[20];生产厂家

     char bm[20];使用部门 

     int jg;购买价格

     int year;

     int month;

     int day;

struct facility *next;

}STU;

设备号p->no

设备名称p->name

购买价格&p->jg

生产厂家p->cj

使用部门p->bm

&p->year ,&p->month, &p->day 购买日期
是什么意思,我还不懂意思

首先p表示指向结构体的指针,p->no表示指针p所指的结构体变量的成员设备号no,&p->no表示指针p所指的结构体变量的成员设备号no的地址。后面的&p->year,&p->month...和此相同。