摘要: 写的有点复杂了,欢迎拍砖! 阅读全文
posted @ 2010-10-21 22:35 hailong 阅读(378) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;double guess(int n){ double guess=static_cast(n)/2; int i=0; while(i<10) { double r=n/guess; guess=(guess+r)/2; ++i; } ... 阅读全文
posted @ 2010-10-21 18:27 hailong 阅读(598) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { double real_loans,rate,time; cin>>real_loans>>rate>>time; double apply_loans=real_loans/(1-rate/100*time/12),month_repay=apply_loans/time; c... 阅读全文
posted @ 2010-10-21 18:16 hailong 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { double pre_income,incre_income,new_income,new_month_income; cin>>pre_income; const double incre_rate=0.076/6; new_month_income=(incre_rate+... 阅读全文
posted @ 2010-10-21 14:13 hailong 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { double kill_mouse_amount,mouse_weight,diet_weight; cout>kill_mouse_amount; cout>mouse_weight; cout>diet_weight; const double Concentrati... 阅读全文
posted @ 2010-10-21 13:59 hailong 阅读(149) 评论(0) 推荐(0) 编辑