1 / 10
/*合同管理系统*/
/******头文件(.h)***********/
#include <>
#include <>
#include <>
#include ""
#define M 50
struct addressbook
{
int num;
char name[20];
float money[20];
char jia[15];
char yi[15];
int creatline[15];
int deadline[15];
char carryout[15];
char classify[15];
};
typedef struct addressbook AddressBook;
int Init(AddressBook t[]);
int AddRecord(AddressBook t[],int n);
void List(AddressBook t[],int n);
void SearchOnName(AddressBook t[],int n);
void changeOnName(AddressBook t[],int n);
int Deleteonname(AddressBook t[],int n);
void SortOnNum(AddressBook t[],int n);
int quantityonjia(AddressBook t[]);
void SaveRecord(AddressBook t[],int n);
int LoadRecord(AddressBook t[]);
int Menu_select();
void main()
{
AddressBook adr[M];
int length;
while(1)
{
switch(Menu_select())
{
case 1: length=Init(adr);
SaveRecord(adr,length);
break;
case 2:length=LoadRecord(adr);
AddRecord(adr,length);
break;
case 3:length=LoadRecord(adr);
List(adr,length);
break;
case 4:length=LoadRecord(adr);
SearchOnName(adr,length);
break;
case 5:length=LoadRecord(adr);
chan
合同管理系统c语言代码 来自淘豆网m.daumloan.com转载请标明出处.