⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 struct.h

📁 在LINUX下实现的一个超市的收银系统
💻 H
字号:
#ifndef STRUCT_H_#define STRUCT_H_#include <malloc.h>#define LEN sizeof(struct Sell)/*======销售结构体======*/struct Sell{	char bar_code[20];	char mer_name[20];	char mer_unit[20];	char mer_spec[20];	float sell_price;	int mer_amount;	float total_money;		struct Sell *next;};struct Sell *head;struct Sell *p1,*p2;struct Sell *hang_list;struct Sell *hang_list1;void InitLink();//初始化链表void InputDateToStruct(char *bar_code,char *mer_name,char *mer_unit,char *mer_spec,float mer_price,int amount,float total);//写数据到结构体void PrintSellInfo();//打印销售记录struct Sell *IsTheSameMer(char *bar_code);struct Sell *NewNode();//申请空间#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -