2013年12月9日

Replace Temp with Query

摘要: double GetPrice(){ int basePrice = _quantity * _itemPrice; double discountFactor; if (basePrice > 1000) { discountFactor = 0.95; } else { discountFactor = 0.98; } return basePrice * discountFactor;}double GetPrice(){ return BasePrice() * DiscountFactor();}... 阅读全文

posted @ 2013-12-09 15:02 backslash112 阅读(184) 评论(0) 推荐(0) 编辑

导航