#include <stdio.h>
#include <iostream>
using namespace std;
class Test
{
public :
Test()
{
a =1;
};
Test(int a1 )
{
a = a1;
};
Test operator +(Test& temp2)
{
Test result(this->a+temp2.a);
return result;
};
Test operator ++()
{
a++;
return *this;
};
Test operator *(Test& temp2)
{
Test result(this->a * temp2.a);
return result;
}
operator int()
{
return this->a;
}
public:
int a;
};
int main()
{
Test a;
Test b;
a.a =10;
b.a =15;
Test C = a*b;
C++;
C++;
C++;
printf("%d/n",C.a);
C++;
C++;
int c = (int)C;
printf("%d/n",c);
return 0;
}