关于argument和parameter的分别

来源:互联网 发布:手表定位软件 编辑:程序博客网 时间:2024/05/16 04:45

以下面这段话作为理解的根据(The type of a parameter determines the interaction between the parameter & its argument. If the parameter is a reference, then the parameter is bound to its argument. Otherwise, the argument's value is copied.--C++ primer 5th edition)


根据最后一句话,我的理解是argument是调用函数时给的具体参数值;而parameter是函数形式中的参数变量。

印证的一句话6.2.3节“we copy an argument to initialize a parameter”

0 0
原创粉丝点击