📄 inventor.h
字号:
/*
** Declarations for the inventory record.
**
** Structure that contains information about a part.
*/
typedef struct {
int cost;
int supplier;
/* etc. */
} Partinfo;
/*
** Structure to hold information about a subassembly.
*/
typedef struct {
int n_parts;
struct SUBASSYPART {
char partno[10];
short quan;
} *part;
} Subassyinfo;
/*
** Structure for an inventory record, which is a variant record.
*/
typedef struct {
char partno[10];
int quan;
enum { PART, SUBASSY } type;
union {
Partinfo *part;
Subassyinfo *subassy;
} info;
} Invrec;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -