Yay ,I mastered what i took | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Yay ,I mastered what i took

I made a code for partially everything i took https://code.sololearn.com/cUfwwtAu1k3O/?ref=app the code is about bank accounts but the problem is that I don't know how to store values to the balance variables or the code would be cooler example: if you added a certain amount of money the increase would be saved If this is possible in sl and you know how please tell me

12th Apr 2018, 8:05 PM
Ishaq Za'rour
1 Réponse
+ 1
well I'm not familiar with c++ but I think that you should do this. in the deposit function, add balance+=a or self.balance+=a since I'm not familiar with c++ pointers I don't think you should count on me
12th Apr 2018, 9:37 PM
Tomer Sim
Tomer Sim - avatar