VD
Size: a a a
VD
K
K
VD
K
C
АК
C_Fraction*
из операций, достаточно C_Fraction
K
a ? b : c
я ничего плохого не вижуC
K
CA
G
1/3
)t
t
t
class Counter {
protected:
unsigned int count;
public:
Counter() :count(0) {}
Counter(int value) :count(value) {}
unsigned int get_count() const {
return count;
}
Counter operator++() {
return Counter(++count);
}
};
class CountDn : public Counter {
public:
CountDn() :Counter() {}
CountDn(int value) :Counter(value) {}
CountDn operator--() {
return CountDn(--count);
}
};
class CountInhetirance :public CountDn {
public:
CountInhetirance():CountDn(){}
CountInhetirance(int value) :CountDn(value) {}
CountInhetirance operator--(int) {
return CountInhetirance(count--);
}
CountInhetirance operator++(int) {
return CountInhetirance(count++);
}
};
VD
t
AB
t
t