使用右上角的选项卡切换到不同的编程语言。

使用右上角的选项卡切换到不同的编程语言。

使用右上角的选项卡切换到不同的编程语言。

使用右上角的选项卡切换到不同的编程语言。

commentcommentCommentCommentcomment (Operator)

名称

commentcommentCommentCommentcomment — 在程序中添加一行注释。

签名

comment( : : Comment : )

Herror comment(const char* Comment)

Herror T_comment(const Htuple Comment)

void Comment(const HTuple& Comment)

static void HOperatorSet.Comment(HTuple comment)

def comment(comment: str) -> None

描述

commentcommentCommentCommentCommentcomment allows to 在程序中添加一行注释。 As parameter value, i.e., as comment, all characters are allowed. If the operator window is used to enter a comment and if there are newlines in the comment line parameter, one comment statement for every text line is inserted.

In the full text editor a comment is marked by entering an asterisk ('*'"*""*""*""*""*") as first non-whitespace character.

This operator has no effect on the program execution.

参数

CommentCommentCommentCommentcommentcomment (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Arbitrary sequence of characters.

示例(HDevelop)

* This is a program with comments
* 'this is a string as comment'
* here are numbers: 4711, 0.815
stop ()

结果

commentcommentCommentCommentCommentcomment is never executed.

模块

Foundation