fortran输出语句中advance=✀no✀是什么意思?

2024-12-23 07:03:14
推荐回答(3个)
回答1:

看你输出的是否是推进型,默认是yes,这句话就可以省掉,就是推进型,你在写完之后,指针就定位在记录尾部;如果是NO,那么就允许写一部分,指针定位于你这这部分的最后一个字符后面。以后还可以接着的。
回答完毕,可以多泡泡动力论坛,里面高手不少。呵呵

回答2:

Advance Specifier
The advance specifier determines whether nonadvancing I/O occurs for a data transfer statement. It takes the following form:

ADVANCE=c-expr

c-expr
Is a scalar character expression that evaluates to 'YES' for advancing I/O or 'NO' for nonadvancing I/O. The default value is 'YES'.

Trailing blanks in the expression are ignored.

The ADVANCE specifier can appear only in a formatted, sequential data transfer statement that specifies an external unit. It must not be specified for list-directed or namelist data transfer.

Advancing I/O always positions a file at the end of a record, unless an error condition occurs. Nonadvancing I/O can position a file at a character position within the current record.

回答3:

就是不换行输出的意思,我问了一下老师