Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
so ++objName; yes. within that class make an operator overload, operator ++ (){} EMPTY parameters means before. if you have operator ++(int x){} it tells the compiler to do a post increment. I side. just add 5 instead of adding 1. hope this helps!!
19th Feb 2017, 4:37 PM
Michael Szczepanski
Michael Szczepanski - avatar