本文介绍了请指点一些帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我在使用此功能时遇到了一些问题:


Hello,

I am having some trouble with this function:


展开 | 选择 | Wrap | 行号

推荐答案

展开 | 选择 | Wrap | 行号




我有一个叫做房间的课程我有10个房间(room1 room2 ....... room10)房间通过指针(北,南,东,西)连接。我有一个创建所有房间的功能,上面的代码是连接房间的功能部分(room1 North通往room2,room2 South指向room1)。


我想要实现的是2路连接(North指向room2,南指向room1)


以下是整个功能,我评论了我在尝试什么实现。如果您需要更多代码请告诉我。


提前致谢:)

I have a class called "room" I have 10 rooms (room1 room2.......room10) the rooms are connected via pointers (North, South, East,West). I have a function that creates all the rooms, and the code above is a section from the function that connects the rooms (room1 North leads to room2 and room2 South points to room1).

What I''m trying to achieve is a 2 way connection (North points to room2 and south points to room1)

Below is the entire function, ive commented what I''m trying to achieve. If you need more code let me know.

Thanks in advance :)

展开 | 选择 | 换行 | 行号



这篇关于请指点一些帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 06:32