- 积分
- 215
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-5-12
- 最后登录
- 1970-1-1

|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
程序如下,
do 10, z = sta,1,-1
open(14,file= filename(z))
print *,z
nn=0
sum=0.0
aver=0.0
allocate(datas(stations,cols))
do 20,k= 1,stations
read (14,*)(datas(k,m),m = 1,cols)
do 30, n = 1,stations
if (datas(k,1)==station(n))then
nn = nn+1
write(12,'(f10.2,4x,f8.2,4X,f8.2,4X,f6.2)')datas(k,1),datas(k,2),datas(k,3),datas(k,5)
print*,datas(k,1),datas(k,2),datas(k,3),datas(k,5)
endif
30 continue
20 continue
write(12,*)nn
deallocate(datas)
close(14)
10 continue
end
显示结果
只循环了一次我也是挺郁闷的
外循环只有一次进了内循环的,我也是挺郁闷的,哪位大神有空帮帮忙啊~
|
|