Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: *& 是什么意思
* &pSth
pointer
ref
- 代码 -
ClassName::GetSth(TypeName* &pSth) { //some code }
它的意思是“对指向 Typename 的指针的引用”。
TypeName* &pSth是对TypeName指针的引用。
TypeName* &pSth
TypeName
C中的等效语法是TypeName** pSth
TypeName** pSth