I have a Player class and a Game class.

My Game.cpp has has a setPlayers method. It compiles without an error but when I use it in my main, it doesn't work and gives me segment,c++,oop"/>

首页 > 解决方案 > 访问向量 from another class' method

I have a Player class and a Game class.

My Game.cpp has has a setPlayers method. It compiles without an error but when I use it in my main, it doesn't work and gives me segment