Exemplo n.º 1
0
Money Money::Sub(Money b)
{
	Money a;

	RtoK();
	b.RtoK();

	a = *this;
	a.rub = a.rub.Sub(b.rub);

	KtoR();
	b.KtoR();

	return a;
}
Exemplo n.º 2
0
/*Money*/void Money::Div(Money b)
{
	//Money a;

	RtoK();
	b.RtoK();

	//a = *this;
	//a.rub = a.rub.Div(b.rub);

	rub.Div(b.rub);

	KtoR();
	b.KtoR();

	//return a;
}