當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


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)。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。