主题:大家帮我看看这题吧,我到现在一点头绪也没有,呵呵~~
大家帮我看看,给点提示也好啊,帮我把思路打开,~~
You are to develop a software solution to the problem facing a local business. The business has a paper-based customer database to be converted to computer. It must be possible to interactively enter new customers, modify existing customer entries and delete customers. A reports section must produce a list of customers in alpha order of name. The system should be menu-driven with options as follows:
1 Add new customer
2 View customer details
3 Modify customer record
4 Delete customer
5 Reports
6 Exit
Customer records are to consist of: customer number, customer name, address details. The records are to implemented as structures and held in an array. You will be given a file customer.h which contains the code for this. The file is to be included at the top of your program using a #include <customer.h> statement. YOU MUST USE THIS FILE.
建议不要使用类和对象,用写简单的来编
Customer.h file
const SIZE = 10;
struct Address {
char Street[20];
char Suburb[20];
char State[4];
char PostCode[5];
};
struct CustomerRec {
long CustNum;
char CustName[20];
Address CustAddr;
};
CustomerRec CustDB[SIZE]= { {123456, "Chans Plumbing", "63 Ninth Ave", "Toongabbie","NSW","2560"},
{24687, "Zhangs Joinery", "5 Dumfries Rd", "Randwick", "NSW", "2243"},
{54321, "Woos Garden Shop", "171 Rochford Street", "Penrith", "NSW", "2370"}};
You are to develop a software solution to the problem facing a local business. The business has a paper-based customer database to be converted to computer. It must be possible to interactively enter new customers, modify existing customer entries and delete customers. A reports section must produce a list of customers in alpha order of name. The system should be menu-driven with options as follows:
1 Add new customer
2 View customer details
3 Modify customer record
4 Delete customer
5 Reports
6 Exit
Customer records are to consist of: customer number, customer name, address details. The records are to implemented as structures and held in an array. You will be given a file customer.h which contains the code for this. The file is to be included at the top of your program using a #include <customer.h> statement. YOU MUST USE THIS FILE.
建议不要使用类和对象,用写简单的来编
Customer.h file
const SIZE = 10;
struct Address {
char Street[20];
char Suburb[20];
char State[4];
char PostCode[5];
};
struct CustomerRec {
long CustNum;
char CustName[20];
Address CustAddr;
};
CustomerRec CustDB[SIZE]= { {123456, "Chans Plumbing", "63 Ninth Ave", "Toongabbie","NSW","2560"},
{24687, "Zhangs Joinery", "5 Dumfries Rd", "Randwick", "NSW", "2243"},
{54321, "Woos Garden Shop", "171 Rochford Street", "Penrith", "NSW", "2370"}};