Kod: Zaznacz cały
class L_zes
{ int re, im;
public:
........operator ++; przedrostkowy
........operator ++..; przyrostkowy
Według mnie przedrostkowy to chyba będzie tak:
Kod: Zaznacz cały
L_zes operator ++ (){
re++; im ++;
return *this;
}
Kod: Zaznacz cały
l_zes operator ++(int)
{ l_zes lok = *this;
re++;
im++;
return lok;
}
return *this;}