星号和Fortran语句 [英] Asterisk and Fortran statement

查看:464
本文介绍了星号和Fortran语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Fortran 77代码,该代码在第一栏中显示了注释,并在同一行中写了 double precision 。现在我的文本编辑器(Notepad ++)将其显示为语句。如果是声明或评论,我会感到困惑。

I have a Fortran 77 code that shows a comment in the first column and written double precision in the same line. now my text editor (Notepad++) is showing that as a statement. I am confused if it is a statement or a comment.

*   double precision Ct,Jt,PDt,AeA0t,Zt,Cq,Jq,PDq,AeA0q,Zq,
*   &Kt,Kq,Eta,J,PD,AeA0


推荐答案

首先,突出显示文本编辑器语法不是您可以100%信任的东西。它只是在为您提供帮助,但这可能是错误的,并且可能因编辑器而异。

First, the text editor syntax highlighting is not something you can trust 100%. It is just there to help you, but it can be wrong and it can differ from an editor to an editor.

第二,如果该代码可以编译,则必须是评论。否则,&符号& 会导致错误。可以在第六列中使用&号继续上一行,但是它必须是该行的第一个字符。

Second, if that code compiles, it must be a comment. Otherwise the ampersand & would cause an error. The ampersand can be used in the sixth column to continue the previous line, but it has to be the first character of the line.

这篇关于星号和Fortran语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆