早教吧作业答案频道 -->其他-->
求fortranError:Notavalidvalueforthechar-exprinthisconnect-spe怎么解决?for(13):Error:Notavalidvalueforthechar-exprinthisconnect-spec.['readonly']13行是这句open(unit=1,file='d:\cmap\cmapmonv110179.txt',access='sequenti
题目详情
求fortran Error:Not a valid value for the char-expr in this connect-spe怎么解决?
for(13) :Error:Not a valid value for the char-expr in this connect-spec.['readonly']
13行是这句 open (unit=1,file='d:\cmap\cmap_mon_v1101_79.txt',
access='sequential',status='readonly',form='formatted')
Error:Constants and expressions are invalid in read-only I/O lists.[RLONRAIN1]
for(13) :Error:Not a valid value for the char-expr in this connect-spec.['readonly']
13行是这句 open (unit=1,file='d:\cmap\cmap_mon_v1101_79.txt',
access='sequential',status='readonly',form='formatted')
Error:Constants and expressions are invalid in read-only I/O lists.[RLONRAIN1]
▼优质解答
答案和解析
status
Character*(*).Describes the nature of the file to be opened.Can be one of the following:
●'OLD' The file must already exist.If the file exists,it is opened.If it does not exist,an I/O error occurs.
●'NEW' The file must not already exist.If the file does not exist,it is created.If it exists,an I/O error occurs.
●'SCRATCH' If you omit the file parameter when opening a file,the value of status defaults to 'SCRATCH'.Scratch files are temporary.They are deleted when the unit is closed or when the program terminates.
●'REPLACE' The file opened replaces one of the same name.If there is no existing file of the same name,a new file is created.
●'UNKNOWN' (Default) The run-time system first attempts to open the file with status equal to 'OLD',and then with status equal to 'NEW'.If the file exists,it is opened; if it does not exist,it is created.
●Using STATUS= 'UNKNOWN' avoids any run-time errors associated with opening an existing file using STATUS='NEW' or opening a nonexistent file using STATUS='OLD'.
\x05Values of status affect only disk files,and are ignored for devices such as the keyboard or the printer.
没有发现'readonly'这个选项.
Character*(*).Describes the nature of the file to be opened.Can be one of the following:
●'OLD' The file must already exist.If the file exists,it is opened.If it does not exist,an I/O error occurs.
●'NEW' The file must not already exist.If the file does not exist,it is created.If it exists,an I/O error occurs.
●'SCRATCH' If you omit the file parameter when opening a file,the value of status defaults to 'SCRATCH'.Scratch files are temporary.They are deleted when the unit is closed or when the program terminates.
●'REPLACE' The file opened replaces one of the same name.If there is no existing file of the same name,a new file is created.
●'UNKNOWN' (Default) The run-time system first attempts to open the file with status equal to 'OLD',and then with status equal to 'NEW'.If the file exists,it is opened; if it does not exist,it is created.
●Using STATUS= 'UNKNOWN' avoids any run-time errors associated with opening an existing file using STATUS='NEW' or opening a nonexistent file using STATUS='OLD'.
\x05Values of status affect only disk files,and are ignored for devices such as the keyboard or the printer.
没有发现'readonly'这个选项.
看了 求fortranError:...的网友还看了以下:
已知函数f(x)=Asin(ωx+ø)(A>0,0<ø<π,x属于R)的最大值是1,最小正周期为2 2020-04-12 …
已知函数f(x)=2sin(3分之1—6分之π),x∈R,(1)求f(0)的值;(2)设α,β∈0 2020-04-12 …
matlab matlabc=40r=120a=96o=20y=3(角度)f=0.2[x]=sol 2020-05-16 …
设定义在R上的函数f(x)满足:f(tanx)=1cos2x,则f(2)+f(3)+…+f(201 2020-05-17 …
为什么万有引力定律是F=mMG/r²,根据F正比于M/r²,F‘正比于m/r²,则F=k1M/r² 2020-05-22 …
已知函数f(x)=2asin平方(x+π/4)-根号3倍acos2x-1(a〈0).(1)当x属于 2020-06-03 …
这题是这样做吗?科大上15611.如果二阶可导的函数f是微分方程y``+y=0的一个解,证明:f^ 2020-07-18 …
请教一道有关周期函数的题请教一道有关周期函数的题:f(x)是R上的有界函数,f(x+13/42)+ 2020-07-31 …
(2014•宜宾一模)设f(x)是定义在实数集R上的函数,若函数y=f(x+1)为偶函数,且当x≥1 2020-11-12 …
万有引力推倒他说F∝M/R^2且F∝m/R^2为什么就有F∝Mm/R^2你只说了为什么F与M/R^2 2020-12-28 …