作者s890009 (我是秘书)
看板FJU-STAT95B
标题[公告] 给团长的C++
时间Fri Nov 23 10:46:49 2007
因为他被0名1给虎滥了....
囧暴了!
#include <C:\devcpp\all.h>
int main()
{
int i, j;
srand((unsigned)time(NULL));
double P = 1.0;
for( double x=1000; x>=1; x=x-1)
{ P = x + x/P;
}
cout.setf(ios::fixed);
cout.precision(6);
cout << 2.0 + 1.0/P << endl;
cin.get();
return 0;
}
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.136.165.155
1F:推 alwayshahaha:我刚刚也中计了!! 而且是知情还中计 超脑残= = 11/23 10:47
2F:→ s890009:0明1害人害己...北滥唷... 11/23 10:50
3F:推 abidog:默默:你 脑 残 11/23 10:52
4F:推 tearained:默默:冏 11/23 10:54
5F:推 weiching0323:谢谢秘书... 11/23 10:55
6F:→ alwayshahaha:团长!!连同昨天你的脚..一起说个sorry阿~ 11/23 11:18
7F:推 weiching0323:不不不!! 我是个宽宏大量的人.. 别放在心上!! 11/23 11:38
8F:推 s890009:NO MIND!!! 11/23 11:43
9F:推 sixhotme:..... 11/24 00:37