一个指针可以接收一个NULL参数,一个参数参数不能。如果您有可能想要传递“无对象”,则使用指针而不是引用。此外,通过指针传递允许您在调用站点显式地查看对象是通过值还是通过引用传递:// Is mySprite passed by value or by reference? You can't tell // without looking at the definition of func()func(mySprite);// func2 passes "by pointer" - no need to look up function definitionfunc2(&mySprite);