- 积分
- 1720
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-9-19
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2014-10-16 21:29:11
|
显示全部楼层
大概就是这个程序:
program main
use datetime
implicit none
integer ::ae(14)
integer::n,io
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!读取未知文件,判断行数得到n
open(7,file='zhandian.txt',form='formatted')
do
read(7,'(a)',iostat=io) line
if(io<0) exit
if(len_trim(line)==0) cycle
n=n+1
enddo
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
zhandiannumber=n !!!!!!!!!!用这个n来定义后续一系列数组 进行运算
real::vargh(zhandiannumber,14,28),vart(zhandiannumber,14,28)
编译错误 ,Error: A specification statement cannot appear in the executable section
|
|