当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


Processing /* */ (multiline comment)用法及代码示例


Processing, /* */ (multiline comment)用法介绍。

用法

  • /*
  • comment
  • */

参数

  • comment 任何字符序列

说明

代码中嵌入的解释性说明。注释用于提醒自己并告知他人您的程序的函数。多行注释用于代码的大文本说明或在调试应用程序时注释掉代码块。编译器会忽略注释。

例子

/*
   Draws two lines which divides the window 
   into four quadrants. First draws a horizontal
   line and then the vertical line 
*/ 
line(0, 50, 100, 50);
line(50, 0, 50, 100);

相关用法


注:本文由纯净天空筛选整理自processing.org大神的英文原创作品 /* */ (multiline comment)。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。