+ 1

Hi, somebody know what’s wrong with my operator += , i wanted to overload it

https://code.sololearn.com/cA5a10a17A8a/?ref=app

4th Jul 2021, 7:22 AM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
6 odpowiedzi
+ 1
Ok , I may have fixed it , I have commented the changes. https://code.sololearn.com/ca0A17a8a10a
4th Jul 2021, 8:28 AM
Saphal Poudyal
Saphal Poudyal - avatar
0
Refer here for the += and -= operator overload , https://code.sololearn.com/ca0A17a8a10a
4th Jul 2021, 7:48 AM
Saphal Poudyal
Saphal Poudyal - avatar
0
i know my first operator was working but second was not and that was my question why second do not invokes
4th Jul 2021, 7:52 AM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
0
The myList one?
4th Jul 2021, 7:59 AM
Saphal Poudyal
Saphal Poudyal - avatar
0
info += list1 that one, Especially a created a struct “ collection” for this one, I did the same way like my first operator += in another struct,but here it doesn’t work
4th Jul 2021, 8:05 AM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
0
thanks for help, I’ll try
4th Jul 2021, 8:30 AM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar