2012年9月21日

review of c++

摘要: 1. const rational operator*(const rational& lhs,const rational& rhs) { return rational(lhs.numerator() * rhs.numerator(), lhs.denominator() * rhs.denominator()); } rational onefourth(1,4); rational result; result = onefourth * 2; // 工作良好 result = 2 * onefourth; // 万岁,它也工作了!We do not need... 阅读全文

posted @ 2012-09-21 21:26 surghost 阅读(199) 评论(0) 推荐(0) 编辑

导航