知識社群登入
C程式設計作業--for 就業班同學
by 艾鍗學院, 2011-03-16 17:14, 人氣(4160)
 
C程式設計作業 --- 簡單訂位系統
 

The Colossus Airlines fleet consists of one plane with a seating capacity of 30. It makes one flight daily. Write a seating reservation program with the following features:

    1. The program uses linked list. 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.
    2. 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 (sorting)

d) Assign a customer to a seat assignment

e) Delete a seat assignment

f) Quit

    1. The program successfully executes the promises of its menu. Choices d) and e) require additional input, and each should enable the user to abort entry.
    2. After executing a particular function, the program shows the menu again, except for choice f).
    3. Data is saved in a file between runs. When the program is restarted, it first loads in the data, if any, from the file.(file I/O)

[註]:

1.      使用C 語言

2.     有限時間內極盡可能地以物件導向的思維來撰寫 (功能正確50%, 軟體架構50%)

3.      使用 struct 定義person, seat, 系統操作以function pointer來實現show, assign,delete,sort.等操作.

 

討論
編號標題回應最後發表
4856
1
0
4578
2
0
4555
1
4536
1
0
4489
2
0