Home > Back-end >  Array so that each element becomes the same after adding elements, can you explain?
Array so that each element becomes the same after adding elements, can you explain?

Time:09-23

CodePudding user response:

How can become the same? Each element points to the new new Tank object, unless the Tank structure method returns the same object (such as the single instance)

CodePudding user response:

Hero [2] to repeat

CodePudding user response:

Can't, you again to confirm!
  • Related