7、1 使用不返回值函数进行功能分解

7、2 关于用户自定义函数的综述

Function Parameters

Argument(函数实参), Parameter(函数形参)

7、3 空函数的句法和语法

Function prototype, Function definition

7、4 函数形参

Value parameter: A parameter that receives a copy of the value of the corresponding argument.

Reference parameter: A parameter that receives the location(memory address) of the caller’s argument.

7、5 设计函数

Interface, Encapsulation

在函数定义的开始应该加上入口判断,以增加程序的健壮性

Precondition, Postcondition

相关文章: