2011-09-30
C语言实现一超市收银的例子“从文件读取商品编号及对应单价信息
typedef struct Ware_Tag
{
int index;
char name[20];
int price;
}DataType;
typedef struct Record_Tag
{
char date[30];
int index;
int num;
int total;
}Record;
#include
#include
#include
#include
void CreateStroage( char *fileName )
{
int num;
int i;
FILE *pF = NULL;
DataType *pDataType = NULL;
prin...全部
typedef struct Ware_Tag
{
int index;
char name[20];
int price;
}DataType;
typedef struct Record_Tag
{
char d