() (parentheses)

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

名称

() (parentheses)

示例

int a;

a = (4 + 3) * 2;


 // Grouping expressions if (a > 10)
{
//Containing expressions   line(a, 0, a, 100);

// Containing a list of parameters
  } 
描述 Grouping and containing expressions and parameters. Parentheses have multiple functions relating to functions and structures. They are used to contain a list of parameters passed to functions and control structures and they are used to group expressions to control the order of execution. Some functions have no parameters and in this case, the space between parentheses is blank.
语法
 function() function(p1, ..., pN) structure(expression) 
参数
function any function
p1, …, pN list of parameters specific to the function
structure Control structure such as if, for, while
expressions any valid expression or group of expression
相关 , (comma)

Updated on October 2, 2018 05:02:16pm EDT

() (parentheses)