Hey,
I have a class that uses random numbers on initialization. I want to create an array of my type. So I did this:
It works, except that all 5 of the asteroids have the same values that were randomized.Code:asteroid myAsteroids[5];
Is there a way to initialize the array so that it creates 5 different asteroids? Sorry the question is vague, but I'm just getting into classes and I'm not concrete on how everything works.
Thanks,
David