作业帮 > 数学 > 作业

fortran语言中 open(111,file='..\03013\'//outname1) 这里的//和后面的out

来源:学生作业帮 编辑:百度作业网作业帮 分类:数学作业 时间:2024/04/30 05:29:13
fortran语言中 open(111,file='..\03013\'//outname1) 这里的//和后面的outname1什么意思?
character*51 这个表示有51个字节的 变量?
fortran语言中 open(111,file='..\03013\'//outname1) 这里的//和后面的out
outname1 是一个字符串变量,它有值,但我不知道值是多少.
// 的意思就是,把 '\03013\' 和 outname1 的值拼接在一起,类似 C 语言的 strcat
如果 outname1 的值是 'hello.txt'
那么
'..\03013\'//outname1 就是 '..\03013\hello.txt'
character*51 的意思是,定义一个字符串变量,其长度为 51 字节.可存储51个ASCII字符