#include struct S {
S(unsigned _i) : i(_i) { called("S()"); }
~S() { called("~S()"); }
void print();
private:
void called(char *what);
unsigned i;
};
void S::print()
{
std::cout << "Обещанного суперкомпилятора и через " << i
<< " года не будет, и через " << 11*3 << std::endl;
}
void S::called(char *what)
{
std::cout << what << std::endl;
}
int main()
{
S s(3);
s.print();
return 0;
}