+ 1
Now to upgrade the code to lead balance and percent.
See the 65.2 practice lesson.
1 Antwort
+ 1
Add this to the Account class :
Account operator+(Account obj) {
Account res;
res.interest = obj.interest + interest;
res.balance = obj.balance + balance;
return res;
}
I'm making a serie of tutorials about things related to coding, and C++ is in the list, so you may check the page below and comment what you want to learn if Sololearn courses aren't sufficient (following me will notice you about new posted code)
https://code.sololearn.com/WIb425hnGqfl/?ref=app