- 积分
- 7263
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-12-20
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 nickbsb 于 2012-6-29 15:16 编辑
program main
implicit none
real aam(121)
real aamh(24)
CHARACTER year(30)*2
data year/'01','02','03','04','05','06','07','08',09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30'/
!data year/'01','02','03','04','05','06','07','08',09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24'/
integer n,t,i,yr
stop
do yr=1,30
open (11,file='E:\30-60filter\aam30-60filter\30-60filter\aam30-60-'//year(yr)//'.grd',form='binary')
read(11) (aam(i),i=1,121)
open(12,file='E:\30-60filter\aam30-60filter\houaverage\hou'//year(yr)//'.grd',form='binary')
出现这个错误
Compiling Fortran...
E:\30-60filter\aam30-60filter\houaverage\houaverage.f90
E:\30-60filter\aam30-60filter\houaverage\houaverage.f90(6) : Error: Unterminated character constant
data year/'01','02','03','04','05','06','07','08',09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30'/
-------------------------------------------------------------------------------------------------------------------------------------------------------------^
E:\30-60filter\aam30-60filter\houaverage\houaverage.f90(6) : Error: Syntax error, found CHARACTER_CONSTANT ',' when expecting one of: * , /
data year/'01','02','03','04','05','06','07','08',09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30'/
----------------------------------------------------^
Error executing df.exe.
houaverage.obj - 2 error(s), 0 warning(s)
求指教
|
|