
#include <行卜string.h>
int 激轿main()
{
char s[100]
FILE *fp1, *fp2
fp1 = fopen("in.txt", "r")
fp2 = fopen("out.txt", "w")
if(fp1 == NULL || fp2 == NULL) return -1
明带肆 while(~fscanf(fp1, "%s", s))
if(strchr(s, '.')) fprintf(fp2, "%s ", s)
fcloseall()
rename("in.txt", "out.txt")
return 0
}
这个~!print("hello world")
就是hello world程序了磨信历。应该说R在统计方面比较牛的,有很多相应的R包进行各种各样的统计分析,还有强大的作图能力。这瞎搜些坦圆我都还不怎么会,嘿嘿。如果想学R还是得找点资料学习。不是很难的。
产生100个并梁均值誉旁为0标准差庆蔽橡为1的正态分布随机数:rnorm(100,mean
=
0,
sd
=
1)
指数分布数
dnorm(x,
mean
=
5,
sd
=
1,
log
=
TRUE)
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)