绿巨人大战红巨人图片:请教~关于c++

来源:百度文库 编辑:神马品牌网 时间:2024/05/14 03:50:31
* matchmaking program */

commands =
ne(wclient) : adding a new client with information of sex, name,
# of interest, interests.....
ma(tch) : try to match couples as FCFS
un(match) : unmatch the particular client
pr(int) : print list with matched and unmatched seperately
qu(it) : quit the program

> ne <sex> <name> <# of interests> <interests> ...
> ma
> un <name>
> pm
> pr
> qu

ex>
> ne m zhaoxianzhi 3 tennis swimming pingpong
> ne f yinrenfeng 4 baking yoga walking aerobic
> ne m honggildong 2 yoga pingpong
> ma
....

structure
maintain two list, men and women.
name 20 characters,
number of interests(max 10),
interests(20 ch each)
variable(shows the slot of match, -1 mean no match)

input - command line, and file.

好象是婚姻介绍所里的资料之类的
输入你的资料后寻找个跟你匹配的对象

oooooooooooooooooooooooooooooooooooooo