No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I looked around and I didn't quite find what I was looking for. I know that to initialize an array of objects, we have to go something like this : Object *array[10]; But my question is : Why exactly can't we just go like this.. Object array[10]; |
|
Re:
I declared 4 different arrays. I dont know how to display all the arrays. Can anyone please help me with this? I want to display all 4 arrays like this: Student 1 2 3 4 5 6 7 Time Status Final 1 0 0 0 0 0 0 0 6.50 … |
|
Hey guys, This is my first post here :) I have to compare to strings and then continue on with the loop.. [CODE]void HighScore::removePlayer(const string& name) { int i,j = 0; cout<<"Attempting to remove " << name<<endl; while (i<d_nPlayers) { if (d_players[i].name==name) { cout<<"Found : " << name<< "at slot: … |