摘要: C++中参数传递有三种:传递参数值、传递参数地址、传递参数的引用。一、概念分解1. 值2. 指针 指针从本质上讲 就是存放 变量地址的 一个变量, 在逻辑上是独立的,它可以被改变,包括其所指向的地址的改变和其指向地址中所存放的数据的改变。3. 引用 引用是一个别名,在逻辑上不独立,它的存在具有依... 阅读全文
posted @ 2014-12-07 22:12 MelodyLIU 阅读(1590) 评论(0) 推荐(0) 编辑
摘要: The terms parameter and argument are sometimes loosly used interchangeably, and the context is used to distinguish the meaning.The terms parameter(som... 阅读全文
posted @ 2014-12-07 21:03 MelodyLIU 阅读(2078) 评论(0) 推荐(0) 编辑