📅  最后修改于: 2022-03-11 14:44:55.324000             🧑  作者: Mango
代码示例1
for (auto &attack : m_attack) // access by reference to avoid copying
{
if (attack->m_num == input)
{
attack->makeDamage();
}
}