C++ 中的函数定义的通常形式以下:函数
return_type function_name( parameter list ) { body of the function }参数:必须指定参数类型
定义函数时,要定义的函数与主函数的顺序可为:spa