仓库管理系统C语言
发布时间
阅读量:
阅读量
#include "../include/commodity.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
//常量定义
#define SIZE 20
enum judge
{
ERROR = -1,
OK,
};
//类型定义
struct goods
{
char name [SIZE];//货物名
int count;//货物数量
//float price;//货物价格
};
typedef struct goods dataType;
//定义一个结构体
typedef struct list
{
dataType data;
struct list *pNext;
}LIST;
LIST lis;
/*
函数名:creation
函数功能:创建一个空结点
函数参数:无
函数返回值:创建成功返回结点的
全部评论 (0)
还没有任何评论哟~
