作者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