C课程设计 题目:商品订购系统设计 帮忙编一下

来源:百度知道 编辑:UC知道 时间:2024/05/21 10:33:30
功能:屏幕上出现一个界面,让顾客或者输入商品名称或者输入商品型号或者给出商品列表工用户选择让拥护输入所选商品编号,如查到所选商品,则列出商品编号,名称,型号,价格,产地,库存量和已订购量;然后给出选购流程:所选商品编号-列出对商品的信息-要求顾客输入邮寄地址信息-确认订购,是否继续选购其他商品,列出所有选订商品,再次确认订购,建立两个文件,分别存放商品信息和订购信息

晕,给你一个学生管理系统.
#include "stdio.h" /*I/O函数*/
#include "stdlib.h" /*其它说明*/
#include "string.h" /*字符串函数*/
#include "conio.h" /*屏幕操作函数*/
#include "mem.h" /*内存操作函数*/
#include "ctype.h" /*字符操作函数*/
#include "alloc.h" /*动态地址分配函数*/
struct score
{
int mingci;
char xuehao[8];
char mingzi[20];
float score[6];
}data,info[1000];
int i,j,k=0;
char temp[20],ch;
FILE *fp,*fp1;

void shuru()
{
if((fp=fopen("s_score.txt","ab+"))==NULL)
{
printf("cannot open this file.\n");
getch();exit(0);
}
for(i=0;i<=1000;i++)
{
printf("\nPlease shuru xuehao:");
gets(data.xuehao);
printf("Please shuru mingzi:");
gets(data.mingzi);
printf("Please shuru yuwen score:");
gets(temp);data.sco