且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C ++文本游戏中的设计和开发帮助

更新时间:2023-02-02 21:40:37

好的,看起来你已完成程序的一般流程。现在你可以确定你需要的物品吗?


Adrian
Ok, looks like you have a general flow of your programme done. Now can you identify the objects you require?


Adrian


注意AdrianH所说的话。您的大纲不是面向对象的。它是基于对象的。为了使它成为面向对象,你将a)需要识别你的实体,b)识别他们的abilites,c)构建一个类层次结构,d)使用虚函数。


Object基于编程是完全可以的,但不应该被称为面向对象,因为它有一个类或一个结构。
Pay attention to what AdrianH says. Your outline is not object-oriented. It is object-based. For it to be object-oriented, you will a) need to identify your entities, b) identify their abilites, c) construct a class hierarchy, d) use virtual functions.

Object-based programming is perfectly OK but should not be called object-oriented just becuse it has a class or a struct in it.


好的,我怎么去abt它,它太复杂了我要编码!!!!!
ok so how do i go abt it, its too complicated for me to code it!!!!!