谁帮我将这个C语言程序调出来,有一个警告两个错误,我下周星期五之前要用,老师布置的大作业:

来源:百度知道 编辑:UC知道 时间:2024/05/24 23:38:37
题目:编写一个菜单驱动的仓库管理程序,货品记录存储在product.txt这个文件中。
要求如下:
1、 能输入并显示n个货品的货号、类别、名称、价格、产地、批号(按链表存储)
2、 任意输入一个类别,按该类别的价格由高到低排序
3、 任意输入一个货号,能显示该货品的货号、类别、名称、价格、产地、批号
4、 能够按货号查找某货品,可以进行增加、修改、删除操作

课程设计有单独的1.5个学分,报告模版请见存储(请务必按照格式书写),提交时间为第9周星期五中午进行当面检查.

源程序在我空间里(这里有字数限制,-_-...):http://hi.baidu.com/myheartgoing/blog/item/0c0070dc8b3520d18c1029d6.html

非常感谢啊,最好写出哪里出的问题,谢啦!!!
我没多少分,但我可以给出50,真的不好意思-_-,擦...
第一个错显示:Too many types in declaration(太多类型在声明里?);第二个错显示:Type mismatch in 'rankcategory'.(类型不匹配在rankcategory这个子程序里?)
警告是:Fuction should return a value.(子程序应该返回一个值?)

编译错误已经够改好了,没有运行确认,不知道有没有逻辑错误

具体的看注释吧:

#define N 60
#define M 30
#include<stdio.h>
#include<stdlib.h>
#include<malloc.h>
#include<string.h>
int total=0,totalcategory=0,choices;
struct goods *head,*kindsearch;
FILE *fp;
struct goods
{
char no[N],category[N],name[N];
float price;
char origin[N];
char lot[N];
struct goods *next;
};//问题1.这儿需要加一个;
void main()
{
void onechoice();
void twochoice();
void threechoice();
void fourchoice();
int wuchoice();//问题2.这儿的声明需要和后面的函数体一致
int sixchoice();
void interface();
void print();
void writeout();
struct goods *creat();
struct goods *nosearch();
struct goods *catesearch();
struct goods *rankcategory();
struct goods *insert();
void modified();
struct goods *del();//问题3.delete是C语言的关键字,所以不能用作函数名
char str,*filename,*strname;
int on