class Player{
public:
Player(int NumberOfStats){
NumOfStats=NumberOfStats;
}
private:
int NumOfStats;
};
int main (){
int x,y;
string s;
cout << "Player: ";
cin >> x;
Player n[x]; //need to pass arguments for each object constructor
for(int i=0; i<y; i++){
cin >> s;
}
for (int i=0; i<y; i++){
}
}
Can't be done. You need to use a vector or an array of pointers.