当前位置: 代码迷 >> C语言 >> [求助] 关于结构体
  详细解决方案

[求助] 关于结构体

热度:679   发布时间:2006-12-06 20:36:49.0
[求助] 关于结构体

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.

搜索更多相关的解决方案: 结构体  

----------------解决方案--------------------------------------------------------
最好提供翻译后的中文
----------------解决方案--------------------------------------------------------
这是一个航线,有一架飞机,该飞机可以容纳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.程序在执行的过程当中把数据保存在一个文件中。当程序重新运行时,它首先把保存的数据载入。


大体就是这样了!

----------------解决方案--------------------------------------------------------
  相关解决方案