有没有办法在现代Cobol中写评论? [英] Is there a way to write comments in modern Cobol?

查看:96
本文介绍了有没有办法在现代Cobol中写评论?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也在尝试如何在COBOL程序中添加注释。我知道现代版本的COBOL可以编写注释,但是我不确定如何做到这一点。

I'm trying too see how I could add comments to my COBOL program. I know the modern version of COBOL has a way where comments can be written but I am unsure on how to do this.

推荐答案


  • *> 用于内联到行尾的注释,有固定格式和自由格式(固定格式 *> 必须在第7列或更多列中。)
  • $固定格式COBOL的第七列中的b $ b
  • *

  • * 第一栏中的自由格式扩展名,不建议使用,因为它会导致模棱两可的代码。

  • ,并允许某些标识部门标头段落,例如 REMARKS ,现在标记为过时,但仍在使用。

    • *> for inline to-end-of-line comments, fixed and free form (in fixed form the *> will have to be in column 7 or greater).
    • * in column seven for fixed form COBOL
    • * in column one, extension for free form, not recommended as it can lead to ambiguous code.
    • and allowed in some identification division header paragraphs, REMARKS for instance, now marked obsolete, but still used.
    • 现在,ROBODoc已支持智能COBOL注释,这是COBOL的最新版本。

      Smart COBOL comments are now supported in ROBODoc, latest version enhanced for COBOL.

      这篇关于有没有办法在现代Cobol中写评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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