
[英]How to call a method from a class, using the unknown name of an object created by that class?
我正在尝试使用 func afficherEtat,使用用户输入的 object 名称: 人物.hpp 人物.cpp 主.cpp 我正在尝试允许用户使用 class Personnage 创建多个 Personnage。 我事先不知道他会创造多少或他们的名字。 我把他输入的名字放到一个向量中。 我 ...