示例#1
0
Integer::Integer(const Integer& other){
    value = atoi(other.get_value().c_str());
}
示例#2
0
//------------- comparison operator ---------------------------
bool operator ==(const Fraction& lhs, const Integer &rhs) {
	return( rhs.get_value()*lhs.get_denumerator() == lhs.get_numerator());
} 
示例#3
0
void
PrintVisitor::visit(const Integer& node)
{
  m_os << node.get_value();
}