| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1007 人关注过本帖
标题:国外大一菜鸟求助~
取消只看楼主 加入收藏
yuanchuanjim
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-4-19
收藏
 问题点数:0 回复次数:1 
国外大一菜鸟求助~

我今年在英国读大一.以前对C语言没有研究,无奈的是我们今年有这一项科目~更无奈还是用英语学习,下面这个题是最近的一个作业,希望有兴趣C语言高手能帮忙指导一下!帮忙暂时度过此难关,菜鸟在此感激不尽...
You are required to write a database program in C. The program should store the following details for each person:

Name
Address
Telephone number
E-mail address

On start-up the program should ask the user how many sets of details you want to store, and then allocate the appropriate space to store them. The user will then be presented with a menu of options as follows:

1. Enter data
2. Edit data
3. Delete data
4. Display data
5. Save data
6. Load data
7. Quit

Select an option (1-7):

Consider the following:

When entering data the program should allow the entry of a single persons details that will be added to the current data. The user should then be questioned “Enter more details (Y/N) ?”, so that additional details can be added or the user can be returned back to the menu.

All the data that space is allocated for does not need to be entered in one go. Imagine a golf club using your software as a customer database. All the customers are not going to join at once. Therefore the first time option 1. is chosen the program should say something like “Enter the details for customer 1”, and so on as the database is filled.

The delete/edit options should deal with deleting/editing a single persons details at one time.

If the user inputs that he/she wants 20 sets of details, the program should not allow more than 20 sets to be entered. A warning that the space is full should be included in your program.

You should clearly demonstrate use of the following features or concepts within your program:

1. A menu
2. Structures
3. File handling
4. Dynamic memory allocation

Additional marks will be given if a sorting algorithm is used to sort the entered data alphabetically, based upon the name entered. This could be added as an option from the menu. Further relevant options can be added if you feel the need.

搜索更多相关主题的帖子: 国外 
2007-04-19 12:26
yuanchuanjim
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-4-19
收藏
得分:0 
不好意思啊~你给我的这个例子不是很明白,可不可以详细点,最好是帮我搞定他,因为我们也只有这半学期会学C语言,毕竟我的专业不是以此为主,谢谢2楼给我的帮助哈~
(这道破题占我COMPUTER MODULE的40%呢,希望高手们能帮帮我)
2007-04-19 15:00
快速回复:国外大一菜鸟求助~
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.047118 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved