以下段落引用自
http://rsusu1.rnd.runnet.ru/develop/fortran/prof77/node156.html
The SAVE statement has two alternative forms:
SAVE item, item, ... item
SAVE
Where each item can be a local variable or (unsubscripted) array, or the name of a common block enclosed in slashes. The second form, with no list of items, saves all the allowable items in the program unit. This form should not be used in any program unit which uses a common block unless all common blocks used in that program unit are also used in the main program or saved in every program unit in which it appears. The SAVE statement can be used in the main program unit (so that it could be packaged with other specifications in an INCLUDE file) but has no effect.
本文介绍了Fortran语言中SAVE语句的两种形式及其使用场景。SAVE语句用于保存程序单元中的局部变量、数组或通用块等内容。文章详细解释了SAVE语句的不同用法,并强调了在使用通用块时应注意的问题。
2095

被折叠的 条评论
为什么被折叠?



