示例#1
0
int main() {

   Calc* c = new Calc();
   c->Add(3);
   c->Add(4);
   c->Add(9);
   cout << "sum: " << c->GetSum();
   delete c;
}
示例#2
0
int main()
{

	Calc calc;
	calc.Add(5).Sub(3).Mul(4);
	std::cout << calc.getValue() << "\n";

}