(D) custom function

1, the function declaration

prototype function name (parameter 1, parameter 2 ...... );

2, the function definition

function function name (parameter 1, parameter 2 .....)

Declare variables inside a function used

begin

Statement block

end;

 

E.g:

 

 

 

Reproduced in: https: //www.cnblogs.com/wang-can/p/3554496.html

Guess you like

Origin blog.csdn.net/weixin_33963594/article/details/94063644