关系形成了一群人 [英] relationships form a set of people

查看:79
本文介绍了关系形成了一群人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一组人,我们想跟踪他们之间的关系.
每个人都由名字和姓氏的组合唯一标识(为简单起见).
关系以"A是B的______"的形式指定.其中可以用父亲",母亲",丈夫",妻子",兄弟",姐妹"之一填充空白.

要使用链表,数组,向量来实现.

请给我一些建议.

"There is a set of people and we want to track relationships among them.
Each person is uniquely identified by a combination of first name and last name (to keep things simple).
Relationships are specified in the form "A is ______ of B" where the blank can be filled by one of "father", "mother", "husband", "wife", "brother", "sister".

To implementing using linkedlist,array,vector.

Please give suggestions to me.

推荐答案

我的建议是您不要要求别人为您做功课.您不会那样学习,当您因为无法自己完成工作而无法找到工作时,它将对您的人生造成伤害.自己动手做,看看能到哪里.向您的教授寻求帮助.从中学习.我们不是在这里为您做您的工作.我们将在这里帮助您成长和学习是否被卡住.
My suggestion is that you don''t ask others to do your homework for you. You won''t learn that way and it will hurt you later in life, when you can''t get a job because you can''t do the work yourself. Give this a start yourself and see where you get. Ask your professor for help. Learn from this. We aren''t here to do your work for you. We are here to help you grow and learn if you get stuck.


要了解完成家庭作业(或任何项目)所需的内容,您需要了解它:

画在纸上.
从最高级别的父亲和母亲开始.
在下面画孩子们.

现在,了解在家庭成员之间建立关系所需的条件.想一想-是什么让姐姐与众不同?用什么来形容儿子?父亲是如何定义的?

您很快就会找到最需要的值,以确定每个家庭成员的位置.
To understand what it needs to accomplish that homework (or any project) you need to understand it:

draw it onto a paper.
Start with a father and a mother - which are top level.
Underneath draw the children.

Now see what it needs to make relations between the family members. think about it - what makes a sister special? what describes a son? how is a father defined?

You''ll soon find the values that you need top determine the position of each family member.


这篇关于关系形成了一群人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆