インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
>
Name  

{} (波括弧)

   
Examples  
int[] a = { 5, 20, 25, 45, 70 }; 
 
void setup() { 
  size(100, 100); 
} 
 
void loop() { 
  for(int i=0; i<a.length; i++) { 
    line(0, a[i], 50, a[i]); 
  } 
} 

Description  

for()if()のような機能のブロックや命令文の始まりと終わりを決定する。波括弧はまた、配列宣言における初期値を決定する際に使われる。

   
Syntax  
{ statements }
{ ele0, ..., eleN }
   
Parameters  
statements   どんな有効な命令文のシーケンスでもよい

ele0 ... eleN   コンマによって分けられた要素のリスト

   
Usage   Web & Application
   
Related   () (parentheses)
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas