void

本参考资料用于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.

名称

void

示例


void setup()
{  // setup() does not 
return a value   size(200, 200);


  } 
void draw()
{  // draw() does not 
return a value   line(10, 100, 190, 100);


drawCircle();


  } 
void drawCircle()
{  // This function also does not 
return a value   ellipse(30, 30, 50, 50);


  } 
描述 Keyword used indicate that a function returns no value. Each function must either
return a value of a specific datatype or use the keyword void to specify it returns nothing.
语法
void function{  
statements
  } 
参数
function any function that is being defined or implemented
statements any valid statements

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

void