integer M
character (len = 20) dict(50)
data dict/'gum','sin','for','cry','lug','bye','fly','ugly',
M 'each','from','work','talk','with','self',
M 'pizza','thing','feign','fiend','elbow','fault',
M 'dirty','budget','spirit','quaint','maiden',
M 'escort','pickax','example','tension','quinine',
M 'kidney','replica','sleeper','triangle',
M 'kangaroo','mahogany','sergeant','sequence',
M 'moustache','dangerous','scientist','different',
M 'quiescent','magistrate','erroneously',
M 'loudspeaker','phytotoxic','matrimonial',
M 'parasympathomimetic','thigmotropism'/
我在Fortran 77中获得了一些代码,我必须将其转换为95.我知道数据关键字上的基本内容,如
character (len = 5) arr (5)
data arr /'aaa','bbb','ccc','ddd','eee'/
我不知道如何在不同的路线上完成上述操作。我猜测它与上面的内容有关,但在这种情况下我无法弄清楚M的用途。
答案 0 :(得分:2)
在Fortran 77中,第6列中的任何字符表示延续线。在这种情况下,“M”。在Fortran 95中,您可以在行尾使用&符号来继续。