C++ 中的函數定義的通常形式以下:函數
return_type function_name( parameter list ) { body of the function }參數:必須指定參數類型
定義函數時,要定義的函數與主函數的順序可爲:spa