Redian新闻
>
OO design for reservation system?
avatar
OO design for reservation system?# Programming - 葵花宝典
N*s
1
restaraut, or air tickets
anybody tell a good answer?
tthx
avatar
N*y
2

这种问题虽然比不上“谁给个做原子弹的方子”这样的问题来的酷,但也可以算生猛无比
了!

【在 N**s 的大作中提到】
: restaraut, or air tickets
: anybody tell a good answer?
: tthx

avatar
c*c
3
你在问什么?

【在 N**s 的大作中提到】
: restaraut, or air tickets
: anybody tell a good answer?
: tthx

avatar
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。