restaraut, or air tickets anybody tell a good answer? tthx
N*y
2 楼
这种问题虽然比不上“谁给个做原子弹的方子”这样的问题来的酷,但也可以算生猛无比 了!
【在 N**s 的大作中提到】 : restaraut, or air tickets : anybody tell a good answer? : tthx
c*c
3 楼
你在问什么?
【在 N**s 的大作中提到】 : restaraut, or air tickets : anybody tell a good answer? : tthx
f*y
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