No element can be inserted into the vector

CSDN Q & A 2022-06-23 14:42:20 阅读数:69

elementinsertedvector

Development ATM Management system , I first created a basic class , Used to record deposit and withdrawal information , And then created a person class , To record in ATM Account holder , Then there is the front-end class I made , Create users and deposit / withdraw funds in the front-end class , Because of the basic Put it in person class , Want everyone to follow

  • Everyone's deposit and withdrawal information , I am here person Class writes a return person Class private basic Vector of type , But what I found in the call , Deposit and withdrawal information is not inserted into everyone's basic Vector of class , Show size All are 0, Let's look at the code , What seems to be the problem .

    img

img

img

img

img

版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。 https://qdmana.com/2022/174/202206162251031942.html