| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 551 人关注过本帖
标题:[求助] 关于结构体
只看楼主 加入收藏
daiyun
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-12-6
收藏
 问题点数:0 回复次数:2 
[求助] 关于结构体

The Colossus Airlines fleet consists of one plane with a seating capacity of 12. It makes one flight daily. Write a seating reservation program with the following features:
a. The program uses an array of 12 structures. Each structure should hold a seat identification number, a marker that indicates whether the seat is assigned, the last name of the seat holder, and the first name of the seat holder.
b. The program displays the following menu:
To choose a function, enter its letter label:
a) Show number of empty seats
b) Show list of empty seats
c) Show alphabetical list of seats
d) Assign a customer to a seat assignment
e) Delete a seat assignment
f) Quit
c. The program successfully executes the promises of its menu. Choices d) and e) require additional input, and each should enable the user to abort an entry.
d. After executing a particular function, the program shows the menu again.
e. Data is saved in a file between runs. When the program is restarted, it first loads in the data, if any, from the file.

搜索更多相关主题的帖子: 结构体 
2006-12-06 20:36
卧龙孔明
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:59
帖 子:3872
专家分:684
注 册:2006-10-13
收藏
得分:0 
最好提供翻译后的中文

My Blog: www.aiexp.info
虽然我的路是从这里开始的,但是这里不再是乐土.感谢曾经影响过,引导过,帮助过我的董凯,飞燕,leeco,starwing,Rockcarry,soft_wind等等等等.别了,BCCN.
2006-12-08 16:54
Welton
Rank: 2
等 级:论坛游民
帖 子:65
专家分:38
注 册:2006-10-25
收藏
得分:0 
这是一个航线,有一架飞机,该飞机可以容纳12人。该飞机每天一次航班。写一个座位预定的程序,使它能够满足以下特征:
a.这个程序使用12个结构体的数组。每个机构体拥有一个特定的座位标志数字,一个标记数字是否该座位已经预定,预定这一座位的人的姓氏,以及他的名字。
b.这个程序显示以下菜单:
To choose a function, enter its letter label: //选择一个函数,输入它的标示字母:
a) Show number of empty seats //显示空位的座位数目
b) Show list of empty seats //显示空座位的列表
c) Show alphabetical list of seats //以字母顺序显示座位列表(应该指的是按姓名吧)
d) Assign a customer to a seat assignment //给顾客分配座位
e) Delete a seat assignment //取消预定的座位
f) Quit //退出
c.这一程序成功执行它的菜单项目。选择d)和e)要求附加输入,并且每一个都能够使用户异常中止选项。
d.当程序成功完成某一特定函数,程序重新显示菜单。
e.程序在执行的过程当中把数据保存在一个文件中。当程序重新运行时,它首先把保存的数据载入。


大体就是这样了!

只是喜欢编程而已!
2006-12-08 21:56
快速回复:[求助] 关于结构体
数据加载中...
 
   



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

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