精華區beta FreeBSD 關於我們 聯絡資訊
※ 引述《[email protected] (龍龍)》之銘言: > 請問一下 FreeBSD 5.0 是不是沒有 bash 呢? > 因為在 /bin/ 下沒有看到... > 剛好買了一本主要是講 bash 的書, 本來以為 bash = Bourne Shell > 原先是要學 Bourne Shell 的, 可是看了之後好像是不一樣的東西.. ^^|| ports/shells/bash2 -- e-mail : [email protected] 算圓周率程式 : long a=10000,b,c=2800,d,e,f[2801],g; main(){for(;b-c;)f[b++]=a/5;for(;d=0,g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a) for(b=c;d+=f[b]*a,f[b]=d%--g,d/=g--,--b;d*=b);} -- ※ Origin: 克萊恩大地 <Terry.Dragon2.Net> ◆ From: terry.dorm11.nctu.edu.tw