N**s 发帖数: 837 | 1 restaraut, or air tickets
anybody tell a good answer?
tthx | N*********y 发帖数: 105 | 2
这种问题虽然比不上“谁给个做原子弹的方子”这样的问题来的酷,但也可以算生猛无比
了!
【在 N**s 的大作中提到】 : restaraut, or air tickets : anybody tell a good answer? : tthx
| c***c 发帖数: 21374 | 3 你在问什么?
【在 N**s 的大作中提到】 : restaraut, or air tickets : anybody tell a good answer? : tthx
| f*****y 发帖数: 12 | 4 You can make a class named "restaurant" or "ticketbooth".
Work on some member functions such as
reserve(int i) //reserve i seats
cancel(int i) //cancel i seats
isFull() //whether it's booked up
...
You can use a link list or array, or any other data structure to
hold the data. However, each will has its own advantages and disadvantages.
I think that's the point they are asking for.
【在 N**s 的大作中提到】 : restaraut, or air tickets : anybody tell a good answer? : tthx
|
|