回 帖 发 新 帖 刷新版面

主题:大家帮我看看这题吧,我到现在一点头绪也没有,呵呵~~

大家帮我看看,给点提示也好啊,帮我把思路打开,~~

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"}};

回复列表 (共6个回复)

沙发

我重发,忘了给分了,不好意思,第一次来

板凳

好象是回了给分,呵呵,
不好意思,
才来的,
大家各抒己见,给小妹点提示吧thank you!!

3 楼

???

4 楼

楼主厉害!!!我E问不懂,佩服!!!!!!!!!!!!!!!!

5 楼

请问你想做到什么程度呢?用什么来做这个程序?你什么都不说。别人是很难给出什么意见给你的。

6 楼

用结构体加数组吧,

还有现在一个问题就是如何将客户的姓名来排序呢 ?

我来回复

您尚未登录,请登录后再回复。点此登录或注册