|
Yes you altered the right one. The reason I did not know that you changed the right one is that I can't see your computer. I can only go by the code that you have posted.
My only suggestion was to remove the red bit of code in my last post. At the moment that code is declaring a new local array and then trying to assign a single value to it. It won't even compile. If you remove the red code that is declaring it (the "EnergySource*"), then the compiler will know to use the m_sources member variable from the class. This is what your teacher called a "private array".
|