We can start to define Expr
The print and eval functions just call the corresponding ExprBase virtuals
void Expr::print(FILE* f) const
{
p->print(f);
}
int Expr::eval() const
{
return p->eval();
}
Previous slide
Next slide
Back to first slide
View graphic version